public class RowToken extends io.netty.util.AbstractReferenceCounted implements DataToken
AbstractReferenceCounted to release associated ByteBufs once the row is de-allocated.
Note: PLP values are aggregated in a single ByteBuf and not yet streamed. This is to be fixed.
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDecode(io.netty.buffer.ByteBuf buffer,
Column[] columns)
Check whether the
ByteBuf can be decoded into an entire RowToken. |
protected void |
deallocate() |
static RowToken |
decode(io.netty.buffer.ByteBuf buffer,
Column[] columns)
Decode a
RowToken. |
io.netty.buffer.ByteBuf |
getColumnData(int index)
Returns the
data for the column at index. |
String |
getName() |
byte |
getType() |
RowToken |
touch(Object hint) |
public static final byte TYPE
public static RowToken decode(io.netty.buffer.ByteBuf buffer, Column[] columns)
RowToken.buffer - the data buffer.columns - column descriptors.RowToken.public static boolean canDecode(io.netty.buffer.ByteBuf buffer,
Column[] columns)
ByteBuf can be decoded into an entire RowToken.buffer - the data buffer.columns - column descriptors.true if the buffer contains sufficient data to entirely decode a row.@Nullable public io.netty.buffer.ByteBuf getColumnData(int index)
data for the column at index.index - the column index.null if indicated by null-bit compression.public String getName()
public RowToken touch(Object hint)
touch in interface io.netty.util.ReferenceCountedprotected void deallocate()
deallocate in class io.netty.util.AbstractReferenceCountedCopyright © 2023. All rights reserved.