Package | Description |
---|---|
org.apache.datasketches |
This package is the parent package for all sketch algorithms.
|
org.apache.datasketches.sampling |
This package is dedicated to streaming algorithms that enable fixed size, uniform sampling of
unweighted items from a stream.
|
org.apache.datasketches.theta |
The theta package contains all the sketch classes that are members of the
Theta Sketch Framework.
|
org.apache.datasketches.tuple |
The tuple package contains implementation of sketches based on the idea of
theta sketches with the addition of values associated with unique keys.
|
org.apache.datasketches.tuple.arrayofdoubles | |
org.apache.datasketches.tuple.strings |
Modifier and Type | Method and Description |
---|---|
static ResizeFactor |
ResizeFactor.getRF(int lg)
Returns the Resize Factor given the Log-base 2 of the Resize Factor
|
static ResizeFactor |
ResizeFactor.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResizeFactor[] |
ResizeFactor.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static ReservoirLongsSketch |
ReservoirLongsSketch.newInstance(int k,
ResizeFactor rf)
Construct a mergeable reservoir sampling sketch with up to k samples using the default resize
factor (8).
|
static <T> ReservoirItemsSketch<T> |
ReservoirItemsSketch.newInstance(int k,
ResizeFactor rf)
Construct a mergeable sampling sketch with up to k samples using a specified resize factor.
|
static <T> VarOptItemsSketch<T> |
VarOptItemsSketch.newInstance(int k,
ResizeFactor rf)
Construct a varopt sampling sketch with up to k samples using the specified resize factor.
|
Modifier and Type | Method and Description |
---|---|
ResizeFactor |
SetOperationBuilder.getResizeFactor()
Returns the Resize Factor
|
ResizeFactor |
UpdateSketchBuilder.getResizeFactor()
Returns the Resize Factor
|
abstract ResizeFactor |
UpdateSketch.getResizeFactor()
Returns the configured ResizeFactor
|
Modifier and Type | Method and Description |
---|---|
SetOperationBuilder |
SetOperationBuilder.setResizeFactor(ResizeFactor rf)
Sets the cache Resize Factor
|
UpdateSketchBuilder |
UpdateSketchBuilder.setResizeFactor(ResizeFactor rf)
Sets the cache Resize Factor.
|
Modifier and Type | Method and Description |
---|---|
UpdatableSketchBuilder<U,S> |
UpdatableSketchBuilder.setResizeFactor(ResizeFactor resizeFactor)
This is to set the resize factor.
|
Modifier and Type | Method and Description |
---|---|
abstract ResizeFactor |
ArrayOfDoublesUpdatableSketch.getResizeFactor()
Gets the configured resize factor
|
Modifier and Type | Method and Description |
---|---|
ArrayOfDoublesUpdatableSketchBuilder |
ArrayOfDoublesUpdatableSketchBuilder.setResizeFactor(ResizeFactor resizeFactor)
This is to set the resize factor.
|
Constructor and Description |
---|
ArrayOfStringsSketch(int lgK,
ResizeFactor rf,
float p)
Constructs new sketch with given ResizeFactor, p and lgK.
|
Copyright © 2015–2021 The Apache Software Foundation. All rights reserved.