it.unimi.di.mg4j.index.cluster
Class LexicalStrategies

java.lang.Object
  extended by it.unimi.di.mg4j.index.cluster.LexicalStrategies

public class LexicalStrategies
extends Object

Static utility methods for lexical strategies.

Author:
Alessandro Arrabito, Sebastiano Vigna

Constructor Summary
protected LexicalStrategies()
           
 
Method Summary
static ContiguousLexicalStrategy uniform(int numberOfLocalIndices, Index index)
          Creates an contiguous lexical strategy in which all local indices have approximately the same number of documents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexicalStrategies

protected LexicalStrategies()
Method Detail

uniform

public static ContiguousLexicalStrategy uniform(int numberOfLocalIndices,
                                                Index index)
                                         throws IOException
Creates an contiguous lexical strategy in which all local indices have approximately the same number of documents.

Parameters:
numberOfLocalIndices - the number of local indices.
index - the global index to be partitioned.
Returns:
a ContiguousLexicalStrategy that will partition in index in numberOfLocalIndices local indices of approximately equal size.
Throws:
IOException