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