public static class TimeUUID.Serializer extends TimeUUID.AbstractSerializer<TimeUUID> implements IVersionedSerializer<TimeUUID>
Modifier and Type | Field and Description |
---|---|
static TimeUUID.Serializer |
instance |
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
TimeUUID |
deserialize(DataInputPlus in,
int version)
Deserialize into the specified DataInputStream instance.
|
<V> TimeUUID |
deserialize(V value,
ValueAccessor<V> accessor) |
java.lang.Class<TimeUUID> |
getType() |
void |
serialize(TimeUUID t,
DataOutputPlus out,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(TimeUUID t,
int version)
Calculate serialized size of object without actually serializing.
|
serialize, toString, validate
deserialize, toCQLLiteral, validate
public static final TimeUUID.Serializer instance
public <V> TimeUUID deserialize(V value, ValueAccessor<V> accessor)
deserialize
in class TypeSerializer<TimeUUID>
public java.lang.Class<TimeUUID> getType()
getType
in class TypeSerializer<TimeUUID>
public void serialize(TimeUUID t, DataOutputPlus out, int version) throws java.io.IOException
IVersionedAsymmetricSerializer
serialize
in interface IVersionedAsymmetricSerializer<TimeUUID,TimeUUID>
t
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
- if serialization failspublic TimeUUID deserialize(DataInputPlus in, int version) throws java.io.IOException
IVersionedAsymmetricSerializer
deserialize
in interface IVersionedAsymmetricSerializer<TimeUUID,TimeUUID>
in
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
- if deserialization failspublic long serializedSize(TimeUUID t, int version)
IVersionedAsymmetricSerializer
serializedSize
in interface IVersionedAsymmetricSerializer<TimeUUID,TimeUUID>
t
- object to calculate serialized sizeversion
- protocol versionCopyright © 2009- The Apache Software Foundation