public interface Union
| Modifier and Type | Method and Description |
|---|---|
CompactSketch |
getResult()
Gets the result of this operation as an ordered CompactSketch on the Java heap.
|
CompactSketch |
getResult(boolean dstOrdered,
Memory dstMem)
Gets the result of this operation as a CompactSketch of the chosen form.
|
void |
reset()
Resets this Union.
|
byte[] |
toByteArray()
Returns a byte array image of this Union object
|
void |
update(byte[] data)
Present this union with the given byte array.
|
void |
update(char[] data)
Present this union with the given char array.
|
void |
update(double datum)
Present this union with the given double (or float) datum.
|
void |
update(int[] data)
Present this union with the given integer array.
|
void |
update(long datum)
Present this union with a long.
|
void |
update(long[] data)
Present this union with the given long array.
|
void |
update(Memory mem)
Union the given Memory image of the OpenSource Theta Sketch,
which may be ordered or unordered, or the earlier versions of SetSketch,
which must be compact and ordered.
|
void |
update(Sketch sketchIn)
Union the given on-heap sketch.
|
void |
update(String datum)
Present this union with the given String.
|
void update(Sketch sketchIn)
sketchIn - The incoming sketch.void update(Memory mem)
This method can be repeatedly called. If the given sketch is null it is interpreted as an empty sketch.
mem - Memory image of sketch to be mergedvoid update(long datum)
datum - The given long datum.void update(double datum)
datum - The given double datum.void update(String datum)
Note: this will not produce the same output hash values as the update(char[])
method and will generally be a little slower depending on the complexity of the UTF8 encoding.
datum - The given String.void update(byte[] data)
data - The given byte array.void update(int[] data)
data - The given int array.void update(char[] data)
Note: this will not produce the same output hash values as the update(String)
method but will be a little faster as it avoids the complexity of the UTF8 encoding.
data - The given char array.void update(long[] data)
data - The given long array.CompactSketch getResult(boolean dstOrdered, Memory dstMem)
dstOrdered - See Destination OrdereddstMem - See Destination Memory.CompactSketch getResult()
byte[] toByteArray()
void reset()
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.