it.unimi.di.mg4j.index.cluster
Class LexicalStrategies
java.lang.Object
it.unimi.di.mg4j.index.cluster.LexicalStrategies
public class LexicalStrategies
- extends Object
Static utility methods for lexical strategies.
- Author:
- Alessandro Arrabito, Sebastiano Vigna
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LexicalStrategies
protected LexicalStrategies()
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