public class ArrayOfLongsSerDe extends ArrayOfItemsSerDe<Long>
Constructor and Description |
---|
ArrayOfLongsSerDe() |
Modifier and Type | Method and Description |
---|---|
Long[] |
deserializeFromMemory(org.apache.datasketches.memory.Memory mem,
int length)
Deserialize an array of items from a given Memory object.
|
byte[] |
serializeToByteArray(Long[] items)
Serialize an array of items to byte array.
|
public byte[] serializeToByteArray(Long[] items)
ArrayOfItemsSerDe
serializeToByteArray
in class ArrayOfItemsSerDe<Long>
items
- array of items to be serializedpublic Long[] deserializeFromMemory(org.apache.datasketches.memory.Memory mem, int length)
ArrayOfItemsSerDe
deserializeFromMemory
in class ArrayOfItemsSerDe<Long>
mem
- Memory containing a serialized array of itemslength
- number of items in the serialized arrayCopyright © 2015–2021 The Apache Software Foundation. All rights reserved.