public interface LexicalPartitioningStrategy extends PartitioningStrategy
When partitioning lexically an index (i.e., termwise), we need a way to associate to each term a local index (the index that will contain the postings of that term) and a local term number (the number of the term in the local index).
Usually, a lexical partitioning strategy has a matching
LexicalClusteringStrategy whose methods
satisfy the following equations:
globalNumber(localIndex(t), localNumber(t)) = t <localIndex(globalNumber(i, l)), localNumber(globalNumber(i, l))> = <i, l>
|Modifier and Type||Method and Description|
Returns the index to which a given term number is mapped by this strategy.
Returns the local term number given a global term number.
int localIndex(int globalNumber)
globalNumber- the term global number.
int localNumber(int globalNumber)
globalNumber- a global term number.