it.unimi.di.mg4j.index.cluster
Interface PartitioningStrategy

All Superinterfaces:
Serializable
All Known Subinterfaces:
DocumentalPartitioningStrategy, LexicalPartitioningStrategy
All Known Implementing Classes:
ContiguousDocumentalStrategy, ContiguousLexicalStrategy

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 of properties() that is usually merged with the property file of the local index.

Author:
Sebastiano Vigna
See Also:
ClusteringStrategy

Method Summary
 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).