Class LexicalStrategies
- java.lang.Object
-
- it.unimi.di.big.mg4j.index.cluster.LexicalStrategies
-
public class LexicalStrategies extends Object
Static utility methods for lexical strategies.- Author:
- Alessandro Arrabito, Sebastiano Vigna
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LexicalStrategies()
-
Method Summary
Modifier and Type Method Description static ContiguousLexicalStrategy
uniform(int numberOfLocalIndices, Index index)
Creates an contiguous lexical strategy in which all local indices have approximately the same number of documents.
-
-
-
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 inindex
innumberOfLocalIndices
local indices of approximately equal size. - Throws:
IOException
-
-