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