public interface SetType extends DataType
Modifier and Type | Method and Description |
---|---|
default String |
asCql(boolean includeFrozen,
boolean pretty)
Builds an appropriate representation for use in a CQL query.
|
DataType |
getElementType() |
default int |
getProtocolCode()
The code of the data type in the native protocol specification.
|
boolean |
isFrozen() |
attach, isDetached
@NonNull DataType getElementType()
boolean isFrozen()
@NonNull default String asCql(boolean includeFrozen, boolean pretty)
DataType
asCql
in interface DataType
includeFrozen
- whether to include the frozen<...>
keyword if applicable. This
will need to be set depending on where the result is used: for example, CREATE
TABLE
statements use the frozen keyword, whereas it should never appear in CREATE
FUNCTION
.pretty
- whether to pretty-print UDT names (as described in CqlIdentifier.asCql(boolean)
.default int getProtocolCode()
DataType
getProtocolCode
in interface DataType
Copyright © 2017–2024. All rights reserved.