public class ArrayOfStringsSummary extends Object implements UpdatableSummary<String[]>
| Modifier and Type | Method and Description |
|---|---|
ArrayOfStringsSummary |
copy()
Deep copy.
|
boolean |
equals(Object summary) |
static DeserializeResult<ArrayOfStringsSummary> |
fromMemory(org.apache.datasketches.memory.Memory mem) |
String[] |
getValue() |
int |
hashCode() |
static long |
stringHash(String s) |
byte[] |
toByteArray()
This is to serialize a Summary instance to a byte array.
|
void |
update(String[] value)
This is to provide a method of updating summaries.
|
public ArrayOfStringsSummary copy()
SummaryCaution: This must implement a deep copy.
public String[] getValue()
public byte[] toByteArray()
SummaryThe user should encode in the byte array its total size, which is used during deserialization, especially if the Summary has variable sized elements.
toByteArray in interface Summarypublic static DeserializeResult<ArrayOfStringsSummary> fromMemory(org.apache.datasketches.memory.Memory mem)
mem - the given memorypublic void update(String[] value)
UpdatableSummaryupdate in interface UpdatableSummary<String[]>value - update valuepublic static long stringHash(String s)
s - the string to hashCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.