uk.ac.gla.dcs.renaissance.mg4j
Class AbstractDocumentCollection
java.lang.Object
it.unimi.dsi.mg4j.document.AbstractDocumentSequence
it.unimi.dsi.mg4j.document.AbstractDocumentCollection
uk.ac.gla.dcs.renaissance.mg4j.AbstractDocumentCollection
- All Implemented Interfaces:
- it.unimi.dsi.io.SafelyCloseable, it.unimi.dsi.lang.FlyweightPrototype<it.unimi.dsi.mg4j.document.DocumentCollection>, it.unimi.dsi.mg4j.document.DocumentCollection, it.unimi.dsi.mg4j.document.DocumentSequence, Closeable
- Direct Known Subclasses:
- TRECDocumentCollection
public abstract class AbstractDocumentCollection
- extends it.unimi.dsi.mg4j.document.AbstractDocumentCollection
Useful extensions to the MG4J document collection
- Author:
- B. Piwowarski
Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentCollection |
it.unimi.dsi.mg4j.document.AbstractDocumentCollection.PropertyKeys |
Fields inherited from interface it.unimi.dsi.mg4j.document.DocumentCollection |
DEFAULT_EXTENSION |
Method Summary |
it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<String> |
getReverseIDMap()
Get the map from external to internal IDs |
static it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<String> |
getReverseIDMap(it.unimi.dsi.mg4j.document.DocumentCollection collection)
Get the map from external to internal IDs for a document collection -
compute it if necessary |
Methods inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentCollection |
ensureDocumentIndex, iterator, main, printAllDocuments, toString |
Methods inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentSequence |
close, filename, finalize, load |
Methods inherited from interface it.unimi.dsi.mg4j.document.DocumentCollection |
copy, document, metadata, size, stream |
Methods inherited from interface it.unimi.dsi.mg4j.document.DocumentSequence |
close, factory, filename |
AbstractDocumentCollection
public AbstractDocumentCollection()
getReverseIDMap
public it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<String> getReverseIDMap()
- Get the map from external to internal IDs
getReverseIDMap
public static it.unimi.dsi.fastutil.objects.Object2IntRBTreeMap<String> getReverseIDMap(it.unimi.dsi.mg4j.document.DocumentCollection collection)
- Get the map from external to internal IDs for a document collection -
compute it if necessary
Copyright © 2011. All Rights Reserved.