public class MultiIndex extends Index
Properties
Index.UpdatingCollectionStatistics| Modifier and Type | Field and Description |
|---|---|
protected List<Index> |
indices |
protected IncrementalSelectiveMatching |
selectiveMatchingPolicy
Selective Matching policy, a policy for accessing only subsets of the indices within this multi-index.
|
dirtyProperties, EMPTY_CLASS_ARRAY, lastLoadError, MINIMUM_INDEX_TERRIER_VERSION, properties, PROPERTIES_SUFFIX, RETRIEVAL_LOADING_PROFILE| Constructor and Description |
|---|
MultiIndex(Index[] indices)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the data structures of the index.
|
void |
flush()
Write any dirty data structures down to disk
|
CollectionStatistics |
getCollectionStatistics()
Get the collection statistics
|
PostingIndex<?> |
getDirectIndex()
Return the DirectIndex associated with this index
|
DocumentIndex |
getDocumentIndex()
Return the DocumentIndex associated with this index
|
Object |
getIndexStructure(String structureName)
Obtains the named index structure, using an already loaded one if
possible.
|
Object |
getIndexStructureInputStream(String structureName)
Not implemented.
|
PostingIndex<?> |
getInvertedIndex()
Returns the InvertedIndex to use for this index
|
Index |
getIthShard(int i) |
Lexicon<String> |
getLexicon()
Return the Lexicon associated with this index
|
MetaIndex |
getMetaIndex()
Get the Meta Index structure
|
int |
getNumberOfShards()
Returns the number of index shards that this incremental index contains
|
String |
toString()
Returns a String representation of this index
|
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, setIndexPropertyprotected IncrementalSelectiveMatching selectiveMatchingPolicy
public MultiIndex(Index[] indices)
public String toString()
public Object getIndexStructure(String structureName)
getIndexStructure in class IndexstructureName - name of the required structurepublic Lexicon<String> getLexicon()
getLexicon in class Indexpublic PostingIndex<?> getInvertedIndex()
getInvertedIndex in class Indexpublic MetaIndex getMetaIndex()
getMetaIndex in class Indexpublic DocumentIndex getDocumentIndex()
getDocumentIndex in class Indexpublic CollectionStatistics getCollectionStatistics()
getCollectionStatistics in class Indexpublic PostingIndex<?> getDirectIndex()
IndexgetDirectIndex in class Indexpublic Object getIndexStructureInputStream(String structureName)
getIndexStructureInputStream in class IndexstructureName - The name of the structure of which you want the inputstream.
Eg "lexicon"public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class IndexIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class IndexIOExceptionpublic Index getIthShard(int i)
public int getNumberOfShards()
Terrier 4.0. Copyright © 2004-2014 University of Glasgow