public class GroupDataSummary extends Object implements com.yahoo.sketches.tuple.UpdatableSummary<CachingGroupData>
Modifier and Type | Field and Description |
---|---|
static int |
DATA_POSITION |
static int |
INITIALIZED_POSITION |
static int |
SIZE_POSITION |
Constructor and Description |
---|
GroupDataSummary() |
Modifier and Type | Method and Description |
---|---|
GroupDataSummary |
copy() |
static com.yahoo.sketches.tuple.DeserializeResult<GroupDataSummary> |
fromMemory(com.yahoo.memory.Memory serializedSummary)
Needed to deserialize an instance of this
GroupDataSummary from a Memory . |
static GroupDataSummary |
mergeInPlace(GroupDataSummary a,
GroupDataSummary b)
This method merges two
GroupDataSummary into each other. |
byte[] |
toByteArray() |
void |
update(CachingGroupData value) |
public static final int INITIALIZED_POSITION
public static final int SIZE_POSITION
public static final int DATA_POSITION
public void update(CachingGroupData value)
update
in interface com.yahoo.sketches.tuple.UpdatableSummary<CachingGroupData>
public static GroupDataSummary mergeInPlace(GroupDataSummary a, GroupDataSummary b)
GroupDataSummary
into each other. It picks the first non-null parameter to
merge into and returns that after merge.a
- The first GroupDataSummary
to merge.b
- The second GroupDataSummary
to merge.public GroupDataSummary copy()
copy
in interface com.yahoo.sketches.tuple.Summary
public byte[] toByteArray()
toByteArray
in interface com.yahoo.sketches.tuple.Summary
public static com.yahoo.sketches.tuple.DeserializeResult<GroupDataSummary> fromMemory(com.yahoo.memory.Memory serializedSummary)
GroupDataSummary
from a Memory
.serializedSummary
- The serialized summary as a Memory
object.DeserializeResult
representing the deserialized summary.Copyright © 2021. All rights reserved.