Modifier and Type | Field and Description |
---|---|
static VarIntegerCodec |
INSTANCE |
Constructor and Description |
---|
VarIntegerCodec() |
Modifier and Type | Method and Description |
---|---|
Integer |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
Integer |
deepCopy(Integer source) |
void |
encode(Integer x,
DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(Integer x) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
boolean |
isEstimatedSizeSupported() |
public static final VarIntegerCodec INSTANCE
public void encode(Integer x, DataOutput dataOut) throws IOException
Codec
encode
in interface Codec<Integer>
IOException
public Integer decode(DataInput dataIn) throws IOException
Codec
decode
in interface Codec<Integer>
IOException
public int getFixedSize()
getFixedSize
in interface Codec<Integer>
public boolean isDeepCopySupported()
isDeepCopySupported
in interface Codec<Integer>
Codec.deepCopy(Object)
operations is supported.public boolean isEstimatedSizeSupported()
isEstimatedSizeSupported
in interface Codec<Integer>
Codec.estimatedSize(Object)
operation is supported.public int estimatedSize(Integer x)
estimatedSize
in interface Codec<Integer>
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.