uk.ac.gla.dcs.renaissance.mg4j
Class AbstractDocumentCollection

java.lang.Object
  extended by it.unimi.dsi.mg4j.document.AbstractDocumentSequence
      extended by it.unimi.dsi.mg4j.document.AbstractDocumentCollection
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentCollection
it.unimi.dsi.mg4j.document.AbstractDocumentCollection.PropertyKeys
 
Field Summary
 
Fields inherited from interface it.unimi.dsi.mg4j.document.DocumentCollection
DEFAULT_EXTENSION
 
Constructor Summary
AbstractDocumentCollection()
           
 
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 class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

AbstractDocumentCollection

public AbstractDocumentCollection()
Method Detail

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.