public class FSAFieldDocumentIndex extends FSADocumentIndex implements FieldDocumentIndex
FSADocumentIndex.FSADocumentIndexIterator
FSArrayFile.ArrayFileIterator<V extends org.apache.hadoop.io.Writable>, FSArrayFile.ArrayFileWriter
docLengths, lastDocid, lastEntry, logger
dataFile, dataFilename, entrySize, numberOfEntries, USUAL_EXTENSION, valueFactory
modCount
Constructor and Description |
---|
FSAFieldDocumentIndex(IndexOnDisk index,
String structureName)
Construct an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
int[] |
getFieldLengths(int docid)
Get the length of each field
|
protected void |
initialise(IndexOnDisk index,
String structureName) |
getDocumentEntry, getDocumentLength, getNumberOfDocuments
close, get, iterator, size, writeFSArrayFile
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentEntry, getDocumentLength, getNumberOfDocuments
public FSAFieldDocumentIndex(IndexOnDisk index, String structureName) throws IOException
index
- structureName
- IOException
protected void initialise(IndexOnDisk index, String structureName) throws IOException
initialise
in class FSADocumentIndex
IOException
public int[] getFieldLengths(int docid) throws IOException
getFieldLengths
in interface FieldDocumentIndex
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow