DataType.CollectionType, DataType.CustomType, DataType.Name, DataType.NativeType
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asFunctionParameterString()
Returns a String representation of this data type suitable for inclusion as a parameter type in
a function or aggregate signature.
|
boolean |
equals(java.lang.Object o) |
java.util.List<DataType> |
getTypeArguments()
Returns the type arguments of this type.
|
int |
hashCode() |
boolean |
isFrozen()
Returns whether this data type is frozen.
|
java.lang.String |
toString() |
ascii, bigint, blob, cboolean, cdouble, cfloat, cint, counter, custom, date, decimal, duration, getName, inet, isCollection, list, list, map, map, set, set, smallint, text, time, timestamp, timeuuid, tinyint, uuid, varchar, varint
public boolean isFrozen()
DataType
This applies to User Defined Types, tuples and nested collections. Frozen types are serialized as a single value in Cassandra's storage engine, whereas non-frozen types are stored in a form that allows updates to individual subfields.
public java.util.List<DataType> getTypeArguments()
DataType
Note that only the collection types (LIST, MAP, SET) have type arguments. For the other types, this will return an empty list.
For the collection types:
getTypeArguments
in class DataType
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String asFunctionParameterString()
DataType
In such places, the String representation might vary from the canonical one as returned by
Object.toString()
; e.g. the frozen
keyword is not accepted.
asFunctionParameterString
in class DataType
Copyright © 2009-2022 The Apache Software Foundation