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
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
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 Platform 5.1. Copyright © 2004-2019, University of Glasgow