public class SerializerIntegerPacked extends SerializerInteger
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 |
---|
SerializerIntegerPacked() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
deserialize(DataInput2 in,
int available)
Deserializes and returns the content of the given
DataInput2 . |
int |
fixedSize()
Returns the fixed size of the serialized form in bytes or -1 if the size
is not fixed (e.g.
|
void |
serialize(DataOutput2 out,
java.lang.Integer value)
Serializes the content of the given value into the given
DataOutput2 . |
java.lang.Integer |
valueArrayBinaryGet(DataInput2 input,
int keysLen,
int pos) |
int |
valueArrayBinarySearch(java.lang.Integer key,
DataInput2 input,
int keysLen,
java.util.Comparator comparator) |
int[] |
valueArrayDeserialize(DataInput2 in,
int size) |
void |
valueArraySerialize(DataOutput2 out,
java.lang.Object vals) |
pack, unpack, valueArraySearch
isTrusted, valueArrayCopyOfRange, valueArrayDeleteValue, valueArrayEmpty, valueArrayFromArray, valueArrayGet, valueArrayPut, valueArraySearch, 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.Integer value) throws java.io.IOException
Serializer
DataOutput2
.serialize
in interface Serializer<java.lang.Integer>
serialize
in class SerializerInteger
out
- DataOutput2 to save object intovalue
- Object to serializejava.io.IOException
- in case of an I/O errorpublic java.lang.Integer deserialize(DataInput2 in, int available) throws java.io.IOException
Serializer
DataInput2
.deserialize
in interface Serializer<java.lang.Integer>
deserialize
in class SerializerInteger
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 errorpublic void valueArraySerialize(DataOutput2 out, java.lang.Object vals) throws java.io.IOException
valueArraySerialize
in interface GroupSerializer<java.lang.Integer>
valueArraySerialize
in class SerializerFourByte<java.lang.Integer>
java.io.IOException
public int[] valueArrayDeserialize(DataInput2 in, int size) throws java.io.IOException
valueArrayDeserialize
in interface GroupSerializer<java.lang.Integer>
valueArrayDeserialize
in class SerializerFourByte<java.lang.Integer>
java.io.IOException
public int fixedSize()
Serializer
Some optimizations can be applied to serializers with a fixed size.
fixedSize
in interface Serializer<java.lang.Integer>
fixedSize
in class SerializerFourByte<java.lang.Integer>
public int valueArrayBinarySearch(java.lang.Integer key, DataInput2 input, int keysLen, java.util.Comparator comparator) throws java.io.IOException
valueArrayBinarySearch
in interface GroupSerializer<java.lang.Integer>
valueArrayBinarySearch
in class SerializerInteger
java.io.IOException
public java.lang.Integer valueArrayBinaryGet(DataInput2 input, int keysLen, int pos) throws java.io.IOException
valueArrayBinaryGet
in interface GroupSerializer<java.lang.Integer>
valueArrayBinaryGet
in class SerializerFourByte<java.lang.Integer>
java.io.IOException
Copyright © 2018. All Rights Reserved.