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
IVersionedSerializer
serialize
in interface IVersionedSerializer<Row>
row
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
public Row deserialize(java.io.DataInput in, int version, ColumnSerializer.Flag flag) throws java.io.IOException
java.io.IOException
public Row deserialize(java.io.DataInput in, int version) throws java.io.IOException
IVersionedSerializer
deserialize
in interface IVersionedSerializer<Row>
in
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
public long serializedSize(Row row, int version)
IVersionedSerializer
serializedSize
in interface IVersionedSerializer<Row>
row
- object to calculate serialized sizeversion
- protocol versionCopyright © 2013 The Apache Software Foundation