public class MemoryDocumentIndexFieldsMap extends MemoryDocumentIndexMap implements FieldDocumentIndex
MemoryDocumentIndexMap.DocumentMapIterator2
MemoryDocumentIndex.DocumentIterator, MemoryDocumentIndex.DocumentIterator2
docLengths
Constructor and Description |
---|
MemoryDocumentIndexFieldsMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDocument(int docid,
int length,
int[] flengths)
Add document length and field lengths to document index.
|
void |
addDocument(int docid,
int length,
int[] flengths,
BitIndexPointer bitbasedpointer)
Add document length and field lengths to document index.
|
void |
close() |
FieldDocumentIndexEntry |
getDocumentEntry(int docid)
Get the document index entry based on its docid
|
int[] |
getFieldLengths(int docid)
Get the length of each field
|
addDocument, getDocumentLength, getNumberOfDocuments, iterator, iteratorOverEntries
addDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentLength, getNumberOfDocuments
public void addDocument(int docid, int length, int[] flengths)
public void addDocument(int docid, int length, int[] flengths, BitIndexPointer bitbasedpointer)
public int[] getFieldLengths(int docid)
getFieldLengths
in interface FieldDocumentIndex
public FieldDocumentIndexEntry getDocumentEntry(int docid)
getDocumentEntry
in interface DocumentIndex
getDocumentEntry
in class MemoryDocumentIndexMap
public void close()
close
in class MemoryDocumentIndexMap
Terrier 4.0. Copyright © 2004-2014 University of Glasgow