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, isEstimatedSizeSupported
public static final VarSignedLongCodec INSTANCE
public void encode(Long value, DataOutput dataOut) throws IOException
Codec
encode
in interface Codec<Long>
encode
in class VarLongCodec
IOException
public Long decode(DataInput dataIn) throws IOException
Codec
decode
in interface Codec<Long>
decode
in class VarLongCodec
IOException
public int estimatedSize(Long value)
estimatedSize
in interface Codec<Long>
estimatedSize
in class VarLongCodec
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.