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:
java.io.Closeable, java.lang.Iterable<DocumentIndexEntry>, java.util.Collection<DocumentIndexEntry>, java.util.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, java.lang.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, java.lang.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,
                             java.lang.String structureName)
                      throws java.io.IOException
Construct an instance of the class with

Parameters:
index -
structureName -
Throws:
java.io.IOException
Method Detail

initialise

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

getFieldLengths

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

Specified by:
getFieldLengths in interface FieldDocumentIndex
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow