public final class ColumnMetadataToken extends AbstractDataToken
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_COLUMNS |
static byte |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDecode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
Check whether the
ByteBuf can be decoded into an entire ColumnMetadataToken. |
static ColumnMetadataToken |
create(Column[] columns)
|
static ColumnMetadataToken |
decode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
Decode the
ColumnMetadataToken response from a ByteBuf. |
Column[] |
getColumns() |
String |
getName() |
boolean |
hasColumns() |
Map<String,Column> |
toMap() |
String |
toString() |
getTypepublic static final byte TYPE
public static final int NO_COLUMNS
public static ColumnMetadataToken create(Column[] columns)
columns - the columns.ColumnMetadataToken.public static ColumnMetadataToken decode(io.netty.buffer.ByteBuf buffer, boolean encryptionSupported)
ColumnMetadataToken response from a ByteBuf.buffer - must not be null.encryptionSupported - whether encryption is supported.ColumnMetadataToken.public static boolean canDecode(io.netty.buffer.ByteBuf buffer,
boolean encryptionSupported)
ByteBuf can be decoded into an entire ColumnMetadataToken.buffer - the data buffer.encryptionSupported - whether encryption is supported.true if the buffer contains sufficient data to entirely decode a ColumnMetadataToken.public Column[] getColumns()
public boolean hasColumns()
public String getName()
getName in interface DataTokengetName in class AbstractDataTokenAbstractDataToken.Copyright © 2023. All rights reserved.