| Package | Description |
|---|---|
| com.yahoo.sketches |
This package is the parent package for all sketch algorithms.
|
| com.yahoo.sketches.frequencies |
This package is dedicated to streaming algorithms that enable estimation of the
frequency of occurence of items in a weighted multiset stream of items.
|
| com.yahoo.sketches.quantiles |
The quantiles package contains stochastic streaming algorithms that enable single-pass
analysis of the distribution of a stream of real (double) values or generic items.
|
| com.yahoo.sketches.sampling |
This package is dedicated to streaming algorithms that enable fixed size, uniform sampling of
unweighted items from a stream.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayOfDoublesSerDe
Methods of serializing and deserializing arrays of Double.
|
class |
ArrayOfLongsSerDe
Methods of serializing and deserializing arrays of Long.
|
class |
ArrayOfNumbersSerDe
Methods of serializing and deserializing arrays of the object version of primitive types of
Number.
|
class |
ArrayOfStringsSerDe
Methods of serializing and deserializing arrays of String.
|
class |
ArrayOfUtf16StringsSerDe
Methods of serializing and deserializing arrays of String.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ItemsSketch<T> |
ItemsSketch.getInstance(Memory srcMem,
ArrayOfItemsSerDe<T> serDe)
Returns a sketch instance of this class from the given srcMem,
which must be a Memory representation of this sketch class.
|
byte[] |
ItemsSketch.toByteArray(ArrayOfItemsSerDe<T> serDe)
Returns a byte array representation of this sketch
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ItemsUnion<T> |
ItemsUnion.getInstance(Memory srcMem,
Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Heapify the given srcMem into a Union object.
|
static <T> ItemsSketch<T> |
ItemsSketch.getInstance(Memory srcMem,
Comparator<? super T> comparator,
ArrayOfItemsSerDe<T> serDe)
Heapifies the given srcMem, which must be a Memory image of a ItemsSketch
|
void |
ItemsSketch.putMemory(Memory dstMem,
ArrayOfItemsSerDe<T> serDe)
Puts the current sketch into the given Memory if there is sufficient space.
|
byte[] |
ItemsSketch.toByteArray(ArrayOfItemsSerDe<T> serDe)
Serialize this sketch to a byte array form.
|
byte[] |
ItemsSketch.toByteArray(boolean ordered,
ArrayOfItemsSerDe<T> serDe)
Serialize this sketch to a byte array form.
|
void |
ItemsUnion.update(Memory srcMem,
ArrayOfItemsSerDe<T> serDe)
Iterative union operation, which means this method can be repeatedly called.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ReservoirItemsUnion<T> |
ReservoirItemsUnion.getInstance(Memory srcMem,
ArrayOfItemsSerDe<T> serDe)
Instantiates a Union from Memory
|
static <T> ReservoirItemsSketch<T> |
ReservoirItemsSketch.getInstance(Memory srcMem,
ArrayOfItemsSerDe<T> serDe)
Returns a sketch instance of this class from the given srcMem,
which must be a Memory representation of this sketch class.
|
byte[] |
ReservoirItemsSketch.toByteArray(ArrayOfItemsSerDe<? super T> serDe)
Returns a byte array representation of this sketch.
|
byte[] |
ReservoirItemsSketch.toByteArray(ArrayOfItemsSerDe<? super T> serDe,
Class<?> clazz)
Returns a byte array representation of this sketch.
|
byte[] |
ReservoirItemsUnion.toByteArray(ArrayOfItemsSerDe<T> serDe)
Returns a byte array representation of this union
|
byte[] |
ReservoirItemsUnion.toByteArray(ArrayOfItemsSerDe<T> serDe,
Class<?> clazz)
Returns a byte array representation of this union.
|
void |
ReservoirItemsUnion.update(Memory mem,
ArrayOfItemsSerDe<T> serDe)
Union the given Memory image of the sketch.
|
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.