public interface CustomType 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.
|
String |
getClassName()
The fully qualified name of the subtype of
org.apache.cassandra.db.marshal.AbstractType
that represents this type server-side. |
default int |
getProtocolCode()
The code of the data type in the native protocol specification.
|
attach, isDetached
@NonNull String getClassName()
org.apache.cassandra.db.marshal.AbstractType
that represents this type server-side.@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.