public static class Row.RowSerializer extends java.lang.Object implements IVersionedSerializer<Row>
| Constructor and Description |
|---|
Row.RowSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Row |
deserialize(java.io.DataInput in,
int version)
Deserialize into the specified DataInputStream instance.
|
Row |
deserialize(java.io.DataInput in,
int version,
ColumnSerializer.Flag flag) |
void |
serialize(Row row,
java.io.DataOutput out,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(Row row,
int version)
Calculate serialized size of object without actually serializing.
|
public void serialize(Row row, java.io.DataOutput out, int version) throws java.io.IOException
IVersionedSerializerserialize in interface IVersionedSerializer<Row>row - type that needs to be serializedout - DataOutput into which serialization needs to happen.version - protocol versionjava.io.IOExceptionpublic Row deserialize(java.io.DataInput in, int version, ColumnSerializer.Flag flag) throws java.io.IOException
java.io.IOExceptionpublic Row deserialize(java.io.DataInput in, int version) throws java.io.IOException
IVersionedSerializerdeserialize in interface IVersionedSerializer<Row>in - DataInput from which deserialization needs to happen.version - protocol versionjava.io.IOExceptionpublic long serializedSize(Row row, int version)
IVersionedSerializerserializedSize in interface IVersionedSerializer<Row>row - object to calculate serialized sizeversion - protocol versionCopyright © 2015 The Apache Software Foundation