|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.facet.util.RandomSample.Algorithm
public static class RandomSample.Algorithm
For specifying which sampling algorithm to use.
Field Summary | |
---|---|
static 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 |
TRAVERSAL
Specifies a methodical traversal algorithm, which is guaranteed to span the collection at least once, and never to return duplicates. |
Method Summary | |
---|---|
String |
toString()
Prints this algorithm's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RandomSample.Algorithm TRAVERSAL
public static final RandomSample.Algorithm HASHING
Method Detail |
---|
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |