org.terrier.structures
Class FSAFieldDocumentIndex

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<V>
          extended by org.terrier.structures.collections.FSArrayFile<DocumentIndexEntry>
              extended by org.terrier.structures.FSADocumentIndex
                  extended by org.terrier.structures.FSAFieldDocumentIndex
All Implemented Interfaces:
Closeable, Iterable<DocumentIndexEntry>, Collection<DocumentIndexEntry>, List<DocumentIndexEntry>, DocumentIndex, FieldDocumentIndex

public class FSAFieldDocumentIndex
extends FSADocumentIndex
implements FieldDocumentIndex

Fields document index stored as a fixed size array


Nested Class Summary
 
Nested classes/interfaces inherited from class org.terrier.structures.FSADocumentIndex
FSADocumentIndex.FSADocumentIndexIterator
 
Nested classes/interfaces inherited from class org.terrier.structures.collections.FSArrayFile
FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>, FSArrayFile.ArrayFileWriter
 
Field Summary
 
Fields inherited from class org.terrier.structures.FSADocumentIndex
docLengths, lastDocid, lastEntry, logger
 
Fields inherited from class org.terrier.structures.collections.FSArrayFile
dataFile, dataFilename, entrySize, numberOfEntries, USUAL_EXTENSION, valueFactory
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FSAFieldDocumentIndex(Index index, String structureName)
          Construct an instance of the class with
 
Method Summary
 int[] getFieldLengths(int docid)
          Get the length of each field
protected  void initialise(Index index, String structureName)
           
 
Methods inherited from class org.terrier.structures.FSADocumentIndex
getDocumentEntry, getDocumentLength, getNumberOfDocuments
 
Methods inherited from class org.terrier.structures.collections.FSArrayFile
close, get, iterator, size, writeFSArrayFile
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.terrier.structures.DocumentIndex
getDocumentEntry, getDocumentLength, getNumberOfDocuments
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

FSAFieldDocumentIndex

public FSAFieldDocumentIndex(Index index,
                             String structureName)
                      throws IOException
Construct an instance of the class with

Parameters:
index -
structureName -
Throws:
IOException
Method Detail

initialise

protected void initialise(Index index,
                          String structureName)
                   throws IOException
Overrides:
initialise in class FSADocumentIndex
Throws:
IOException

getFieldLengths

public int[] getFieldLengths(int docid)
                      throws IOException
Get the length of each field

Specified by:
getFieldLengths in interface FieldDocumentIndex
Throws:
IOException


Terrier 3.6. Copyright © 2004-2011 University of Glasgow