public class ArrayOfBooleansSerDe extends ArrayOfItemsSerDe<Boolean>
| Constructor and Description |
|---|
ArrayOfBooleansSerDe() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeBytesNeeded(int arrayLength)
Computes number of bytes needed for packed bit encoding of the array of booleans.
|
Boolean[] |
deserializeFromMemory(org.apache.datasketches.memory.Memory mem,
int length)
Deserialize an array of items from a given Memory object.
|
byte[] |
serializeToByteArray(Boolean[] items)
Serialize an array of items to byte array.
|
public static int computeBytesNeeded(int arrayLength)
arrayLength - Number of items in the array to serializepublic byte[] serializeToByteArray(Boolean[] items)
ArrayOfItemsSerDeserializeToByteArray in class ArrayOfItemsSerDe<Boolean>items - array of items to be serializedpublic Boolean[] deserializeFromMemory(org.apache.datasketches.memory.Memory mem, int length)
ArrayOfItemsSerDedeserializeFromMemory in class ArrayOfItemsSerDe<Boolean>mem - Memory containing a serialized array of itemslength - number of items in the serialized arrayCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.