Interface ColumnType<T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
BooleanType,BytesType,CollectionType,DoubleType,IntegerType,ListType,LongType,MapType,SetType,StringType,StringUuidType,TimestampType,UuidType
public interface ColumnType<T> extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TparseColumn(java.nio.ByteBuffer buffer, int length)Parses a value of this type from buffer.java.nio.ByteBufferserialize(T value)Serialize into ByteBuffer and keeps the position at beginning of ByteBuffer
-
-
-
Method Detail
-
parseColumn
T parseColumn(java.nio.ByteBuffer buffer, int length)
Parses a value of this type from buffer. Value will be parsed from current position of the buffer. After completion of the function, position will be moved by "length" bytes.- Parameters:
buffer- Buffer to parse column fromlength- Serialized value size in buffer is as big as length- Returns:
- value as Java type
-
serialize
java.nio.ByteBuffer serialize(T value)
Serialize into ByteBuffer and keeps the position at beginning of ByteBuffer- Parameters:
value- the value to serialize- Returns:
- A ByteBuffer containing the serialized value
-
-