public class VarSignedLongCodec extends VarLongCodec
| Modifier and Type | Field and Description |
|---|---|
static VarSignedLongCodec |
INSTANCE |
| Constructor and Description |
|---|
VarSignedLongCodec() |
| Modifier and Type | Method and Description |
|---|---|
Long |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
void |
encode(Long value,
DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(Long value) |
deepCopy, getFixedSize, isDeepCopySupported, isEstimatedSizeSupportedpublic static final VarSignedLongCodec INSTANCE
public void encode(Long value, DataOutput dataOut) throws IOException
Codecencode in interface Codec<Long>encode in class VarLongCodecIOExceptionpublic Long decode(DataInput dataIn) throws IOException
Codecdecode in interface Codec<Long>decode in class VarLongCodecIOExceptionpublic int estimatedSize(Long value)
estimatedSize in interface Codec<Long>estimatedSize in class VarLongCodecCopyright © 2010–2025 FuseSource, Corp.. All rights reserved.