public final class Sketches extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
getEstimate(Memory srcMem)
Gets the unique count estimate from a valid memory image of a Sketch
|
static double |
getLowerBound(int numStdDev,
Memory srcMem)
Gets the approximate lower error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.
|
static int |
getMaxCompactSketchBytes(int numberOfEntries)
|
static int |
getMaxIntersectionBytes(int nomEntries)
|
static int |
getMaxUnionBytes(int nomEntries)
|
static int |
getMaxUpdateSketchBytes(int nomEntries)
|
static int |
getSerializationVersion(Memory srcMem)
|
static double |
getUpperBound(int numStdDev,
Memory srcMem)
Gets the approximate upper error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.
|
static SetOperation |
heapifySetOperation(Memory srcMem)
|
static SetOperation |
heapifySetOperation(Memory srcMem,
long seed)
|
static Sketch |
heapifySketch(Memory srcMem)
|
static Sketch |
heapifySketch(Memory srcMem,
long seed)
|
static SetOperationBuilder |
setOperationBuilder()
Ref:
SetOperationBuilder |
static UpdateSketchBuilder |
updateSketchBuilder()
Ref:
UpdateSketchBuilder |
static Intersection |
wrapIntersection(Memory srcMem)
Convenience method, calls
SetOperation.wrap(Memory) and casts the result to a Intersection |
static SetOperation |
wrapSetOperation(Memory srcMem)
|
static SetOperation |
wrapSetOperation(Memory srcMem,
long seed)
|
static Sketch |
wrapSketch(Memory srcMem)
|
static Sketch |
wrapSketch(Memory srcMem,
long seed)
|
static Union |
wrapUnion(Memory srcMem)
Convenience method, calls
SetOperation.wrap(Memory) and casts the result to a Union |
public static UpdateSketchBuilder updateSketchBuilder()
UpdateSketchBuilderUpdateSketchBuilderpublic static Sketch heapifySketch(Memory srcMem)
srcMem - Ref: Sketch.heapify(Memory) srcMemSketchpublic static Sketch heapifySketch(Memory srcMem, long seed)
srcMem - Ref: Sketch.heapify(Memory, long) srcMemseed - Ref: Sketch.heapify(Memory, long) seedSketchpublic static Sketch wrapSketch(Memory srcMem)
srcMem - Ref: Sketch.heapify(Memory) srcMemSketchpublic static Sketch wrapSketch(Memory srcMem, long seed)
srcMem - Ref: Sketch.wrap(Memory, long) srcMemseed - Ref: Sketch.wrap(Memory, long) seedSketchpublic static SetOperationBuilder setOperationBuilder()
SetOperationBuilderSetOperationBuilderpublic static SetOperation heapifySetOperation(Memory srcMem)
srcMem - Ref: SetOperation.heapify(Memory) srcMemSetOperationpublic static SetOperation heapifySetOperation(Memory srcMem, long seed)
srcMem - Ref: SetOperation.heapify(Memory, long)
srcMemseed - Ref: SetOperation.heapify(Memory, long)
seedSetOperationpublic static SetOperation wrapSetOperation(Memory srcMem)
srcMem - Ref: SetOperation.wrap(Memory) srcMemSetOperationpublic static Union wrapUnion(Memory srcMem)
SetOperation.wrap(Memory) and casts the result to a UnionsrcMem - Ref: SetOperation.wrap(Memory) srcMempublic static Intersection wrapIntersection(Memory srcMem)
SetOperation.wrap(Memory) and casts the result to a IntersectionsrcMem - Ref: SetOperation.wrap(Memory) srcMempublic static SetOperation wrapSetOperation(Memory srcMem, long seed)
srcMem - Ref: SetOperation.wrap(Memory, long)
srcMemseed - Ref: SetOperation.wrap(Memory, long)
seedSetOperationpublic static int getMaxCompactSketchBytes(int numberOfEntries)
numberOfEntries - Ref: Sketch.getMaxCompactSketchBytes(int)
numberOfEntriesSketch.getMaxCompactSketchBytes(int)public static int getMaxUpdateSketchBytes(int nomEntries)
nomEntries - Ref: Sketch.getMaxUpdateSketchBytes(int) nomEntriesSketch.getMaxUpdateSketchBytes(int)public static int getSerializationVersion(Memory srcMem)
srcMem - Ref: Sketch.getSerializationVersion(Memory) srcMemSketch.getSerializationVersion(Memory)public static int getMaxUnionBytes(int nomEntries)
nomEntries - Ref: SetOperation.getMaxUnionBytes(int) nomEntriesSetOperation.getMaxUnionBytes(int)public static int getMaxIntersectionBytes(int nomEntries)
nomEntries - Ref: SetOperation.getMaxIntersectionBytes(int) nomEntriesSetOperation.getMaxIntersectionBytes(int)public static double getEstimate(Memory srcMem)
srcMem - See Memorypublic static double getUpperBound(int numStdDev,
Memory srcMem)
numStdDev - See Number of Standard DeviationssrcMem - See Memorypublic static double getLowerBound(int numStdDev,
Memory srcMem)
numStdDev - See Number of Standard DeviationssrcMem - See MemoryCopyright © 2015–2017 Yahoo! Inc.. All rights reserved.