| java.lang.Object it.unimi.dsi.mg4j.index.cluster.ChainedLexicalClusteringStrategy
ChainedLexicalClusteringStrategy | public class ChainedLexicalClusteringStrategy implements LexicalClusteringStrategy(Code) | | A lexical clustering strategy that uses a chain of responsability to choose the local index:
out of a given list are inquired
until one contains the given term.
If the index cluster has Bloom filters, they will be used to reduce useless accesses to
term maps.
The intended usage of this class is memory/disk lexical partitioning. Note that a serialised version
of this class is empty. It acts just like a placeholder, so that loaders now that they
must generate a new instance depending on the indices contained in the cluster.
author: Sebastiano Vigna |
Constructor Summary | |
public | ChainedLexicalClusteringStrategy(Index[] index, BloomFilter[] termFilter) Creates a new chained lexical clustering strategy using additional Bloom filters.
Note that the static type of the parameter index is
an array of
Index , but the elements of the array must be
, or an exception will be thrown.
Parameters: index - an array of disk-based indices, from which term maps will be extracted. Parameters: termFilter - an array, parallel to index , of Bloom filter representing the terms contained in each local index. | public | ChainedLexicalClusteringStrategy(Index[] index) Creates a new chained lexical clustering strategy. |
serialVersionUID | final static long serialVersionUID(Code) | | |
ChainedLexicalClusteringStrategy | public ChainedLexicalClusteringStrategy(Index[] index, BloomFilter[] termFilter)(Code) | | Creates a new chained lexical clustering strategy using additional Bloom filters.
Note that the static type of the parameter index is
an array of
Index , but the elements of the array must be
, or an exception will be thrown.
Parameters: index - an array of disk-based indices, from which term maps will be extracted. Parameters: termFilter - an array, parallel to index , of Bloom filter representing the terms contained in each local index. |
ChainedLexicalClusteringStrategy | public ChainedLexicalClusteringStrategy(Index[] index)(Code) | | Creates a new chained lexical clustering strategy.
Note that the static type of the parameter index is
an array of
Index , but the elements of the array must be
, or an exception will be thrown.
Parameters: index - an array of disk-based indices, from which term maps will be extracted. |
globalNumber | public int globalNumber(int localIndex, int localNumber)(Code) | | |
numberOfLocalIndices | public int numberOfLocalIndices()(Code) | | |
|
|