public class SerializerLong extends SerializerEightByte<java.lang.Long>
BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BYTE, BYTE_ARRAY, BYTE_ARRAY_DELTA, BYTE_ARRAY_DELTA2, BYTE_ARRAY_NOSIZE, CHAR, CHAR_ARRAY, CLASS, DATE, DOUBLE, DOUBLE_ARRAY, ELSA, FLOAT, FLOAT_ARRAY, ILLEGAL_ACCESS, INT_ARRAY, INTEGER, INTEGER_DELTA, INTEGER_PACKED, JAVA, LONG, LONG_ARRAY, LONG_DELTA, LONG_PACKED, RECID, RECID_ARRAY, SHORT, SHORT_ARRAY, STRING, STRING_ASCII, STRING_DELTA, STRING_DELTA2, STRING_INTERN, STRING_NOSIZE, STRING_ORIGHASH, UUID
Constructor and Description |
---|
SerializerLong() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
deserialize(DataInput2 in,
int available)
Deserializes and returns the content of the given
DataInput2 . |
protected long |
pack(java.lang.Long l) |
void |
serialize(DataOutput2 out,
java.lang.Long value)
Serializes the content of the given value into the given
DataOutput2 . |
protected java.lang.Long |
unpack(long l) |
int |
valueArrayBinarySearch(java.lang.Long key,
DataInput2 input,
int keysLen,
java.util.Comparator comparator) |
int |
valueArraySearch(java.lang.Object keys,
java.lang.Long key) |
fixedSize, isTrusted, valueArrayBinaryGet, valueArrayCopyOfRange, valueArrayDeleteValue, valueArrayDeserialize, valueArrayEmpty, valueArrayFromArray, valueArrayGet, valueArrayPut, valueArraySearch, valueArraySerialize, valueArraySize, valueArrayUpdateVal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextValue, valueArrayToArray
clone, compare, deserializeFromLong, equals, hashCode, needsAvailableSizeHint
public void serialize(DataOutput2 out, java.lang.Long value) throws java.io.IOException
Serializer
DataOutput2
.out
- DataOutput2 to save object intovalue
- Object to serializejava.io.IOException
- in case of an I/O errorpublic java.lang.Long deserialize(DataInput2 in, int available) throws java.io.IOException
Serializer
DataInput2
.in
- DataInput2 to de-serialize data fromavailable
- how many bytes that are available in the DataInput2 for
reading, may be -1 (in streams) or 0 (null).DataInput2
java.io.IOException
- in case of an I/O errorprotected java.lang.Long unpack(long l)
unpack
in class SerializerEightByte<java.lang.Long>
protected long pack(java.lang.Long l)
pack
in class SerializerEightByte<java.lang.Long>
public int valueArraySearch(java.lang.Object keys, java.lang.Long key)
public int valueArrayBinarySearch(java.lang.Long key, DataInput2 input, int keysLen, java.util.Comparator comparator) throws java.io.IOException
java.io.IOException
Copyright © 2018. All Rights Reserved.