public interface DocumentalPartitioningStrategy extends PartitioningStrategy
When partitioning documentally an index, we need a way to associate to each global document pointer a local index (the index that will contain the postings of that document) and a local document pointer (the document pointer actually represented in the local index).
Usually, a documental partitioning strategy has a matching
DocumentalClusteringStrategy
whose methods satisfy the following equations:
globalPointer(localIndex(d), localPointer(d)) = d <localIndex(globalPointer(i, l)), localPointer(globalPointer(i, l))> = <i, l>
| Modifier and Type | Method and Description |
|---|---|
int |
localIndex(long globalPointer)
Returns the index to which a given global document pointer is be mapped by this strategy.
|
long |
localPointer(long globalPointer)
Returns the local document pointer corresponding to a global document pointer.
|
long |
numberOfDocuments(int localIndex)
Returns the number of documents that will be assigned to the given local index.
|
numberOfLocalIndices, propertiesint localIndex(long globalPointer)
globalPointer - a global document pointer.long localPointer(long globalPointer)
globalPointer - a global document pointer.long numberOfDocuments(int localIndex)
localIndex - the local index.localIndex.