public class ArrayOfDoublesSerDe extends ArrayOfItemsSerDe<Double>
| Constructor and Description |
|---|
ArrayOfDoublesSerDe() |
| Modifier and Type | Method and Description |
|---|---|
Double[] |
deserializeFromMemory(org.apache.datasketches.memory.Memory mem,
int numItems)
Deserialize a contiguous sequence of serialized items from the given Memory
starting at a Memory offset of zero and extending numItems.
|
Double[] |
deserializeFromMemory(org.apache.datasketches.memory.Memory mem,
long offsetBytes,
int numItems)
Deserialize a contiguous sequence of serialized items from the given Memory
starting at the given Memory offsetBytes and extending numItems.
|
Class<Double> |
getClassOfT()
Returns the concrete class of type T
|
byte[] |
serializeToByteArray(Double item)
Serialize a single unserialized item to a byte array.
|
byte[] |
serializeToByteArray(Double[] items)
Serialize an array of unserialized items to a byte array of contiguous serialized items.
|
int |
sizeOf(Double item)
Returns the serialized size in bytes of a single unserialized item.
|
int |
sizeOf(Double[] items)
Returns the serialized size in bytes of the array of items.
|
int |
sizeOf(org.apache.datasketches.memory.Memory mem,
long offsetBytes,
int numItems)
Returns the serialized size in bytes of the number of contiguous serialized items in Memory.
|
String |
toString(Double item)
Returns a human readable string of an item.
|
public byte[] serializeToByteArray(Double item)
ArrayOfItemsSerDeserializeToByteArray in class ArrayOfItemsSerDe<Double>item - the item to be serializedpublic byte[] serializeToByteArray(Double[] items)
ArrayOfItemsSerDeserializeToByteArray in class ArrayOfItemsSerDe<Double>items - array of items to be serializedpublic Double[] deserializeFromMemory(org.apache.datasketches.memory.Memory mem, int numItems)
ArrayOfItemsSerDedeserializeFromMemory in class ArrayOfItemsSerDe<Double>mem - Memory containing a contiguous sequence of serialized itemsnumItems - number of items in the contiguous serialized sequence.ArrayOfItemsSerDe.deserializeFromMemory(Memory, long, int)public Double[] deserializeFromMemory(org.apache.datasketches.memory.Memory mem, long offsetBytes, int numItems)
ArrayOfItemsSerDedeserializeFromMemory in class ArrayOfItemsSerDe<Double>mem - Memory containing a contiguous sequence of serialized itemsoffsetBytes - the starting offset in the given Memory.numItems - number of items in the contiguous serialized sequence.public int sizeOf(Double item)
ArrayOfItemsSerDesizeOf in class ArrayOfItemsSerDe<Double>item - a specific itempublic int sizeOf(Double[] items)
ArrayOfItemsSerDesizeOf in class ArrayOfItemsSerDe<Double>items - an array of items.public int sizeOf(org.apache.datasketches.memory.Memory mem,
long offsetBytes,
int numItems)
ArrayOfItemsSerDesizeOf in class ArrayOfItemsSerDe<Double>mem - the given Memory.offsetBytes - the starting offset in the given Memory.numItems - the number of serialized items contained in the Memorypublic String toString(Double item)
ArrayOfItemsSerDetoString in class ArrayOfItemsSerDe<Double>item - a specific itempublic Class<Double> getClassOfT()
ArrayOfItemsSerDegetClassOfT in class ArrayOfItemsSerDe<Double>Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.