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 |
|---|---|
int |
localIndex(long globalNumber)
Returns the index to which a given term number is mapped by this strategy.
|
long |
localNumber(long globalNumber)
Returns the local term number given a global term number.
|
numberOfLocalIndices, propertiesint localIndex(long globalNumber)
globalNumber - the term global number.long localNumber(long globalNumber)
globalNumber - a global term number.