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

All Superinterfaces:
Serializable
All Known Subinterfaces:
DocumentalClusteringStrategy, LexicalClusteringStrategy
All Known Implementing Classes:
ChainedLexicalClusteringStrategy, ContiguousDocumentalStrategy, ContiguousLexicalStrategy, IdentityDocumentalStrategy

public interface ClusteringStrategy
extends Serializable

A common ancestor interface for all clustering strategies.

Clustering strategies are dual to partitioning strategies. After partitioning an index, you can see the set of its parts as local indices of a cluster. Sometimes a partitioning strategy is also a clustering strategy (see, e.g., ContiguousDocumentalStrategy and ContiguousLexicalStrategy), but sometimes a strategy serves just one purpose (see, e.g., ChainedLexicalClusteringStrategy).

Each local index is defined by an integer starting from 0 up to numberOfLocalIndices() − 1.

Author:
Sebastiano Vigna

Method Summary
 int numberOfLocalIndices()
          Returns the number of local indices handled by this strategy.
 

Method Detail

numberOfLocalIndices

int numberOfLocalIndices()
Returns the number of local indices handled by this strategy.

Returns:
the number of local indices handled by this strategy.