public interface DataType extends Detachable
The default implementations returned by the driver are immutable and serializable. If you write your own implementations, they should at least be thread-safe; serializability is not mandatory, but recommended for use with some 3rd-party tools like Apache Spark ™.
|Modifier and Type||Method and Description|
Builds an appropriate representation for use in a CQL query.
The code of the data type in the native protocol specification.
@NonNull String asCql(boolean includeFrozen, boolean pretty)
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 TABLEstatements use the frozen keyword, whereas it should never appear in
pretty- whether to pretty-print UDT names (as described in
Copyright © 2017–2021. All rights reserved.