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, setIndexProperty
protected IncrementalSelectiveMatching selectiveMatchingPolicy
public MultiIndex(Index[] indices)
public String toString()
public Object getIndexStructure(String structureName)
getIndexStructure
in class Index
structureName
- name of the required structurepublic Lexicon<String> getLexicon()
getLexicon
in class Index
public PostingIndex<?> getInvertedIndex()
getInvertedIndex
in class Index
public MetaIndex getMetaIndex()
getMetaIndex
in class Index
public DocumentIndex getDocumentIndex()
getDocumentIndex
in class Index
public CollectionStatistics getCollectionStatistics()
getCollectionStatistics
in class Index
public PostingIndex<?> getDirectIndex()
Index
getDirectIndex
in class Index
public Object getIndexStructureInputStream(String structureName)
getIndexStructureInputStream
in class Index
structureName
- The name of the structure of which you want the inputstream.
Eg "lexicon"public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Index
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Index
IOException
public Index getIthShard(int i)
public int getNumberOfShards()
Terrier 4.0. Copyright © 2004-2014 University of Glasgow