Class BucketUtils


  • public final class BucketUtils
    extends java.lang.Object
    Helper functions for common Bucketing functions
    • Method Summary

      Modifier and Type Method Description
      static int suggestShardSideQueueSize​(int finalSize)
      Heuristic used to determine the size of shard-side PriorityQueues when selecting the top N terms from a distributed index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • suggestShardSideQueueSize

        public static int suggestShardSideQueueSize​(int finalSize)
        Heuristic used to determine the size of shard-side PriorityQueues when selecting the top N terms from a distributed index.
        Parameters:
        finalSize - The number of terms required in the final reduce phase.
        Returns:
        A suggested default for the size of any shard-side PriorityQueues