public abstract class DoublesUnion extends Object
| Constructor and Description |
|---|
DoublesUnion() |
| Modifier and Type | Method and Description |
|---|---|
static DoublesUnionBuilder |
builder()
Returns a new UnionBuilder
|
abstract int |
getEffectiveK()
Returns the effective k of this Union.
|
abstract int |
getMaxK()
Returns the configured maxK of this Union.
|
abstract DoublesSketch |
getResult()
Gets the result of this Union operation as a copy of the internal state.
|
abstract DoublesSketch |
getResultAndReset()
Gets the result of this Union operation (without a copy) and resets this Union to the
virgin state.
|
abstract boolean |
isDirect()
Returns true if this union is direct
|
abstract boolean |
isEmpty()
Returns true if this union is empty
|
abstract void |
reset()
Resets this Union to a virgin state.
|
abstract String |
toString()
Returns summary information about the backing sketch.
|
abstract String |
toString(boolean sketchSummary,
boolean dataDetail)
Returns summary information about the backing sketch.
|
abstract void |
update(double dataItem)
Update this union with the given double (or float) data Item.
|
abstract void |
update(DoublesSketch sketchIn)
Iterative union operation, which means this method can be repeatedly called.
|
abstract void |
update(Memory mem)
Iterative union operation, which means this method can be repeatedly called.
|
public static final DoublesUnionBuilder builder()
public abstract boolean isEmpty()
public abstract boolean isDirect()
public abstract int getMaxK()
public abstract int getEffectiveK()
public abstract void update(DoublesSketch sketchIn)
It is required that the results of the union operation, which can be obtained at any time,
is obtained from getResult().
sketchIn - the sketch to be merged into this one.public abstract void update(Memory mem)
It is required that the results of the union operation, which can be obtained at any time,
is obtained from getResult().
mem - Memory image of sketch to be mergedpublic abstract void update(double dataItem)
dataItem - The given double datum.public abstract DoublesSketch getResult()
public abstract DoublesSketch getResultAndReset()
public abstract void reset()
public abstract String toString()
public abstract String toString(boolean sketchSummary, boolean dataDetail)
sketchSummary - if true includes sketch summarydataDetail - if true includes data detailCopyright © 2015–2017 Yahoo! Inc.. All rights reserved.