T - public interface ColumnSerializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(DataInputStream stream,
ColumnDefinition cd)
Read one column value (i.e.
|
T |
fromByteArray(byte[] b,
ColumnDefinition cd)
this method deserializes the value from a byte array
|
void |
serialize(DataOutputStream stream,
T v) |
byte[] |
toByteArray(T v)
This method serializes the value into a byte array
|
T deserialize(DataInputStream stream, ColumnDefinition cd) throws IOException
TableDefinition.deserialize(byte[], byte[]))stream - - data stream used for the inputcd - the column definition for the involved column (can be used to look up column name or other properties to help in deserialization)IOExceptionvoid serialize(DataOutputStream stream, T v) throws IOException
stream - v - IOExceptionbyte[] toByteArray(T v)
v - T fromByteArray(byte[] b, ColumnDefinition cd) throws IOException
b - the input byte arraycd - the column definition for the involved column (can be used to look up column name or other properties to help in deserialization)IOExceptionCopyright © 2018 Space Applications Services. All rights reserved.