Interface PartitioningStrategy
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
DocumentalPartitioningStrategy
,LexicalPartitioningStrategy
- All Known Implementing Classes:
ContiguousDocumentalStrategy
,ContiguousLexicalStrategy
,FrequencyLexicalStrategy
public interface PartitioningStrategy extends Serializable
A 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 ofproperties()
that is usually merged with the property file of the local index.- Author:
- Sebastiano Vigna
- See Also:
ClusteringStrategy
-
-
Method Summary
Modifier and Type Method Description int
numberOfLocalIndices()
Returns 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.
-
-
-
Method Detail
-
numberOfLocalIndices
int numberOfLocalIndices()
Returns the number of local indices created by this strategy.- Returns:
- the number of local indices created by this strategy.
-
properties
Properties[] properties()
Returns an array of properties, one for each local index, that specify additional information about local indices.- Returns:
- an array of properties, one for each local index; any element
can be
null
(in that case, the set of properties is assumed to be empty).
-
-