public class MemoryDocumentIndexFieldsMap extends MemoryDocumentIndexMap implements FieldDocumentIndex
MemoryDocumentIndexMap.DocumentMapIterator2MemoryDocumentIndex.DocumentIterator, MemoryDocumentIndex.DocumentIterator2docLengths| 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, iteratorOverEntriesaddDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentLength, getNumberOfDocumentspublic 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 FieldDocumentIndexpublic FieldDocumentIndexEntry getDocumentEntry(int docid)
getDocumentEntry in interface DocumentIndexgetDocumentEntry in class MemoryDocumentIndexMappublic void close()
close in class MemoryDocumentIndexMapTerrier 4.0. Copyright © 2004-2014 University of Glasgow