Class ArrayOfStringsSummary
- java.lang.Object
-
- org.apache.datasketches.tuple.strings.ArrayOfStringsSummary
-
- All Implemented Interfaces:
Summary
,UpdatableSummary<String[]>
public final class ArrayOfStringsSummary extends Object implements UpdatableSummary<String[]>
- Author:
- Lee Rhodes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayOfStringsSummary
copy()
Deep copy.boolean
equals(Object summary)
String[]
getValue()
int
hashCode()
byte[]
toByteArray()
This is to serialize a Summary instance to a byte array.ArrayOfStringsSummary
update(String[] value)
This is to provide a method of updating summaries.
-
-
-
Method Detail
-
copy
public ArrayOfStringsSummary copy()
Description copied from interface:Summary
Deep copy.Caution: This must implement a deep copy.
-
toByteArray
public byte[] toByteArray()
Description copied from interface:Summary
This is to serialize a Summary instance to a byte array.The user should encode in the byte array its total size, which is used during deserialization, especially if the Summary has variable sized elements.
- Specified by:
toByteArray
in interfaceSummary
- Returns:
- serialized representation of the Summary
-
update
public ArrayOfStringsSummary update(String[] value)
Description copied from interface:UpdatableSummary
This is to provide a method of updating summaries. This is primarily used internally.- Specified by:
update
in interfaceUpdatableSummary<String[]>
- Parameters:
value
- update value- Returns:
- this
-
getValue
public String[] getValue()
- Returns:
- the nodes array for this summary.
-
-