public class MemoryFieldsIndex extends MemoryFields
Index.UpdatingCollectionStatistics
docFields, fdpl, pipeline
blocks, compressionConfig, document, fieldIDs, fields, fieldtags, indexingLock, inverted, lexicon, logger, metadata, stats
dirtyProperties, EMPTY_CLASS_ARRAY, lastLoadError, MINIMUM_INDEX_TERRIER_VERSION, properties, PROPERTIES_SUFFIX, RETRIEVAL_LOADING_PROFILE
Constructor and Description |
---|
MemoryFieldsIndex()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
indexDocument(Document doc)
Index a new document.
|
void |
indexDocument(Map<String,String> docProperties,
DocumentPostingList docContents)
Index a new document.
|
Index |
merge(String diskpath,
String diskprefix,
String newpath,
String newprefix)
Not implemented.
|
Index |
write(String path,
String prefix)
Write index structures to disk.
|
collectProperties, getDocumentIndex
close, flush, getCollectionStatistics, getDirectIndex, getIndexStructure, getIndexStructureInputStream, getInvertedIndex, getLexicon, getMetaIndex, load_pipeline, removeDocument, toString
addIndexStructure, addIndexStructure, addIndexStructure, addIndexStructure, addIndexStructureInputStream, addIndexStructureInputStream, addIndexStructureInputStream, addIndexStructureInputStream, allExists, createIndex, createIndex, createNewIndex, existsIndex, getEnd, getIndexLoadingProfileAsRetrieval, getIndexProperty, getIntIndexProperty, getLastIndexLoadError, getProperties, getStart, hasIndexStructure, hasIndexStructureInputStream, join, main, setIndexLoadingProfileAsRetrieval, setIndexProperty
public void indexDocument(Map<String,String> docProperties, DocumentPostingList docContents) throws Exception
indexDocument
in interface UpdatableIndex
indexDocument
in class MemoryIndex
Exception
public void indexDocument(Document doc) throws Exception
indexDocument
in interface UpdatableIndex
indexDocument
in class MemoryIndex
Exception
public Index write(String path, String prefix) throws IOException
write
in interface WritableIndex
write
in class MemoryIndex
IOException
public Index merge(String diskpath, String diskprefix, String newpath, String newprefix) throws IOException
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow