public class LongArraySerializer extends Object implements ElementSerializer<long[]>
Constructor and Description |
---|
LongArraySerializer()
Create a new instance of LongSerializer
|
Modifier and Type | Method and Description |
---|---|
int |
compare(long[] type1,
long[] type2)
Returns the comparison of two types.
|
long[] |
deserialize(BufferHandler bufferHandler)
Deserialize an element from a BufferHandler
|
long[] |
deserialize(ByteBuffer buffer)
Deserialize an element from a ByteBuffer
|
Comparator<long[]> |
getComparator() |
byte[] |
serialize(long[] element)
Produce the byte[] representation of the element
|
public LongArraySerializer()
public byte[] serialize(long[] element)
serialize
in interface ElementSerializer<long[]>
element
- The element to serializepublic long[] deserialize(BufferHandler bufferHandler) throws IOException
deserialize
in interface ElementSerializer<long[]>
bufferHandler
- The incoming bufferHandlerIOException
- If the deserialization failedpublic long[] deserialize(ByteBuffer buffer) throws IOException
deserialize
in interface ElementSerializer<long[]>
buffer
- The incoming ByteBufferIOException
- If the deserialization failedpublic int compare(long[] type1, long[] type2)
compare
in interface ElementSerializer<long[]>
type1
- The first type to comparetype2
- The second type to comparepublic Comparator<long[]> getComparator()
getComparator
in interface ElementSerializer<long[]>
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.