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