Uses of Class
org.apache.cassandra.cql3.functions.types.DataType
-
Packages that use DataType Package Description org.apache.cassandra.cql3.functions org.apache.cassandra.cql3.functions.types Contains pieces of the Java Driver that are needed to handle data types in C* User-Defined-Functions/Aggregates. -
-
Uses of DataType in org.apache.cassandra.cql3.functions
Methods in org.apache.cassandra.cql3.functions that return DataType Modifier and Type Method Description static DataTypeUDHelper. driverType(AbstractType abstractType)Returns theDataTypefor the C* internal type.static DataTypeUDHelper. driverTypeFromAbstractType(java.lang.String abstractTypeDef)static DataType[]UDHelper. driverTypes(java.util.List<AbstractType<?>> abstractTypes)Construct an array containing theDataTypes for the C* internal types.Methods in org.apache.cassandra.cql3.functions with parameters of type DataType Modifier and Type Method Description static TypeCodec<java.lang.Object>UDHelper. codecFor(DataType dataType)Constructors in org.apache.cassandra.cql3.functions with parameters of type DataType Constructor Description UDFunction(FunctionName name, java.util.List<ColumnIdentifier> argNames, java.util.List<AbstractType<?>> argTypes, DataType[] argDataTypes, AbstractType<?> returnType, DataType returnDataType, boolean calledOnNullInput, java.lang.String language, java.lang.String body) -
Uses of DataType in org.apache.cassandra.cql3.functions.types
Subclasses of DataType in org.apache.cassandra.cql3.functions.types Modifier and Type Class Description static classDataType.CollectionTypeInstances of this class represent collection types, that is, lists, sets or maps.static classDataType.CustomTypeA "custom" type is a type that cannot be expressed as a CQL type.static classDataType.NativeTypeInstances of this class represent CQL native types, also known as CQL primitive types.classTupleTypeA tuple type.classUserTypeA User Defined Type (UDT).Methods in org.apache.cassandra.cql3.functions.types that return DataType Modifier and Type Method Description static DataTypeDataType. ascii()Returns the ASCII type.static DataTypeDataType. bigint()Returns the BIGINT type.static DataTypeDataType. blob()Returns the BLOB type.static DataTypeDataType. cboolean()Returns the BOOLEAN type.static DataTypeDataType. cdouble()Returns the DOUBLE type.static DataTypeDataType. cfloat()Returns the FLOAT type.static DataTypeDataType. cint()Returns the INT type.static DataTypeDataType. counter()Returns the COUNTER type.static DataTypeDataType. date()Returns the DATE type.static DataTypeDataType. decimal()Returns the DECIMAL type.static DataTypeDataType. duration()Returns the Duration type, introduced in Cassandra 3.10.DataTypeTypeCodec. getCqlType()Return the CQL type that this codec deserializes from and serializes to.protected DataTypeTupleValue. getType(int i)protected DataTypeUDTValue. getType(int i)DataTypeUserType.Field. getType()Returns the type of the field.static DataTypeDataType. inet()Returns the INET type.static DataTypeDataTypeClassNameParser. parseOne(java.lang.String className, ProtocolVersion protocolVersion, CodecRegistry codecRegistry)static DataTypeDataType. smallint()Returns the SMALLINT type.static DataTypeDataType. text()Returns the TEXT type.static DataTypeDataType. time()Returns the TIME type.static DataTypeDataType. timestamp()Returns the TIMESTAMP type.static DataTypeDataType. timeuuid()Returns the TIMEUUID type.static DataTypeDataType. tinyint()Returns the TINYINT type.static DataTypeDataType. uuid()Returns the UUID type.static DataTypeDataType. varchar()Returns the VARCHAR type.static DataTypeDataType. varint()Returns the VARINT type.Methods in org.apache.cassandra.cql3.functions.types that return types with arguments of type DataType Modifier and Type Method Description java.util.List<DataType>DataType.CollectionType. getTypeArguments()java.util.List<DataType>DataType. getTypeArguments()Returns the type arguments of this type.Methods in org.apache.cassandra.cql3.functions.types with parameters of type DataType Modifier and Type Method Description booleanTypeCodec.AbstractTupleCodec. accepts(DataType cqlType)booleanTypeCodec. accepts(DataType cqlType)Returntrueif this codec is capable of deserializing the givencqlType.<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, com.google.common.reflect.TypeToken<T> javaType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, java.lang.Class<T> javaType)<T> TypeCodec<T>CodecRegistry. codecFor(DataType cqlType, T value)static DataType.CollectionTypeDataType. list(DataType elementType)Returns the type of "not frozen" lists ofelementTypeelements.static DataType.CollectionTypeDataType. list(DataType elementType, boolean frozen)Returns the type of lists ofelementTypeelements.static DataType.CollectionTypeDataType. map(DataType keyType, DataType valueType)Returns the type of "not frozen" maps ofkeyTypetovalueTypeelements.static DataType.CollectionTypeDataType. map(DataType keyType, DataType valueType, boolean frozen)Returns the type of maps ofkeyTypetovalueTypeelements.static TupleTypeTupleType. of(ProtocolVersion protocolVersion, CodecRegistry codecRegistry, DataType... types)Creates a "disconnected" tuple type (you should preferMetadata#newTupleType(DataType...) cluster.getMetadata().newTupleType(...)whenever possible).static DataType.CollectionTypeDataType. set(DataType elementType)Returns the type of "not frozen" sets ofelementTypeelements.static DataType.CollectionTypeDataType. set(DataType elementType, boolean frozen)Returns the type of sets ofelementTypeelements.Constructors in org.apache.cassandra.cql3.functions.types with parameters of type DataType Constructor Description TypeCodec(DataType cqlType, com.google.common.reflect.TypeToken<T> javaType)TypeCodec(DataType cqlType, java.lang.Class<T> javaClass)This constructor can only be used for non parameterized types.
-