public abstract class ByteArrayColumnType<T extends DataType> extends ColumnType<T,byte[]>
Constructor and Description |
---|
ByteArrayColumnType(int typeId,
int defaultSize) |
Modifier and Type | Method and Description |
---|---|
int |
actualSize(Row row,
int ordinal)
Returns the size of the value
row(ordinal) . |
void |
append(byte[] v,
java.nio.ByteBuffer buffer)
Appends the given value v of type T into the given ByteBuffer.
|
byte[] |
extract(java.nio.ByteBuffer buffer)
Extracts a value out of the buffer at the buffer's current position.
|
public int actualSize(Row row, int ordinal)
ColumnType
row(ordinal)
. This is used to calculate the size of variable
length types such as byte arrays and strings.actualSize
in class ColumnType<T extends DataType,byte[]>
public void append(byte[] v, java.nio.ByteBuffer buffer)
ColumnType
append
in class ColumnType<T extends DataType,byte[]>
public byte[] extract(java.nio.ByteBuffer buffer)
ColumnType
extract
in class ColumnType<T extends DataType,byte[]>