Uses of Class
org.apache.lucene.facet.util.RandomSample.Algorithm

Packages that use RandomSample.Algorithm
org.apache.lucene.facet.util Various utilities for faceted search 
 

Uses of RandomSample.Algorithm in org.apache.lucene.facet.util
 

Fields in org.apache.lucene.facet.util declared as RandomSample.Algorithm
static RandomSample.Algorithm RandomSample.Algorithm.HASHING
          Specifies a Fibonacci-style hash algorithm (see Knuth, S&S), which generates a less systematically distributed subset of the sampled collection than the traversal method, but requires a bounded priority queue the size of the sample, and creates an object containing a sampled value and its hash, for every element in the full set.
static RandomSample.Algorithm RandomSample.Algorithm.TRAVERSAL
          Specifies a methodical traversal algorithm, which is guaranteed to span the collection at least once, and never to return duplicates.
 

Methods in org.apache.lucene.facet.util with parameters of type RandomSample.Algorithm
static int[] RandomSample.repeatableSample(ScoredDocIDs collection, int collectionSize, int sampleSize, RandomSample.Algorithm algorithm, RandomSample.Sorted sorted)
          Returns sampleSize values from the first collectionSize locations of collection, chosen using algorithm.
 



Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.