Class DocumentalStrategies


  • public class DocumentalStrategies
    extends Object
    Static utility methods for documental strategies.
    Author:
    Alessandro Arabito, Sebastiano Vigna
    • Constructor Detail

      • DocumentalStrategies

        protected DocumentalStrategies()
    • Method Detail

      • interleaved

        public static DocumentalPartitioningStrategy interleaved​(int numberOfLocalIndices,
                                                                 int numberOfDocuments)
        Creates an interleaved partitioning strategy.
        Parameters:
        numberOfLocalIndices - the number of local indices.
        numberOfDocuments - the global number of documents.
        Returns:
        a strategy that will partition in index in numberOfLocalIndices local indices of approximately equal size by picking one every numberOfLocalIndices documents in a round-robin fashion.