- All Superinterfaces:
- All Known Implementing Classes:
public interface PartitioningStrategy extends SerializableA common ancestor interface for all partitioning strategies.
When partitioning an index, there are a few pieces of data that must be provided independently of the particular strategy chosen. This interface embodies methods to access them.
Each local index is defined by an integer starting from 0 up to
numberOfLocalIndices()− 1. Each local index is also associated with a set of
properties()that is usually merged with the property file of the local index.
- Sebastiano Vigna
- See Also:
int numberOfLocalIndices()Returns the number of local indices created by this strategy.
- the number of local indices created by this strategy.
Properties properties()Returns an array of properties, one for each local index, that specify additional information about local indices.
- an array of properties, one for each local index; any element
null(in that case, the set of properties is assumed to be empty).