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.
|
Modifier and Type | Method and Description |
---|---|
static DataType |
UDHelper.driverType(AbstractType abstractType)
Returns the
DataType for the C* internal type. |
static DataType |
UDHelper.driverTypeFromAbstractType(java.lang.String abstractTypeDef) |
static DataType[] |
UDHelper.driverTypes(java.util.List<AbstractType<?>> abstractTypes)
Construct an array containing the
DataType s for the
C* internal types. |
Modifier and Type | Method and Description |
---|---|
static TypeCodec<java.lang.Object> |
UDHelper.codecFor(DataType dataType) |
Constructor and 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) |
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) |
Modifier and Type | Class and Description |
---|---|
static class |
DataType.CollectionType
Instances of this class represent collection types, that is, lists, sets or maps.
|
static class |
DataType.CustomType
A "custom" type is a type that cannot be expressed as a CQL type.
|
static class |
DataType.NativeType
Instances of this class represent CQL native types, also known as CQL primitive types.
|
class |
TupleType
A tuple type.
|
class |
UserType
A User Defined Type (UDT).
|
Modifier and Type | Method and Description |
---|---|
static DataType |
DataType.ascii()
Returns the ASCII type.
|
static DataType |
DataType.bigint()
Returns the BIGINT type.
|
static DataType |
DataType.blob()
Returns the BLOB type.
|
static DataType |
DataType.cboolean()
Returns the BOOLEAN type.
|
static DataType |
DataType.cdouble()
Returns the DOUBLE type.
|
static DataType |
DataType.cfloat()
Returns the FLOAT type.
|
static DataType |
DataType.cint()
Returns the INT type.
|
static DataType |
DataType.counter()
Returns the COUNTER type.
|
static DataType |
DataType.date()
Returns the DATE type.
|
static DataType |
DataType.decimal()
Returns the DECIMAL type.
|
static DataType |
DataType.duration()
Returns the Duration type, introduced in Cassandra 3.10.
|
DataType |
TypeCodec.getCqlType()
Return the CQL type that this codec deserializes from and serializes to.
|
DataType |
UserType.Field.getType()
Returns the type of the field.
|
protected DataType |
TupleValue.getType(int i) |
protected DataType |
UDTValue.getType(int i) |
static DataType |
DataType.inet()
Returns the INET type.
|
static DataType |
DataTypeClassNameParser.parseOne(java.lang.String className,
ProtocolVersion protocolVersion,
CodecRegistry codecRegistry) |
static DataType |
DataType.smallint()
Returns the SMALLINT type.
|
static DataType |
DataType.text()
Returns the TEXT type.
|
static DataType |
DataType.time()
Returns the TIME type.
|
static DataType |
DataType.timestamp()
Returns the TIMESTAMP type.
|
static DataType |
DataType.timeuuid()
Returns the TIMEUUID type.
|
static DataType |
DataType.tinyint()
Returns the TINYINT type.
|
static DataType |
DataType.uuid()
Returns the UUID type.
|
static DataType |
DataType.varchar()
Returns the VARCHAR type.
|
static DataType |
DataType.varint()
Returns the VARINT type.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DataType> |
DataType.getTypeArguments()
Returns the type arguments of this type.
|
java.util.List<DataType> |
DataType.CollectionType.getTypeArguments() |
Modifier and Type | Method and Description |
---|---|
boolean |
TypeCodec.accepts(DataType cqlType)
Return
true if this codec is capable of deserializing the given cqlType . |
boolean |
TypeCodec.AbstractTupleCodec.accepts(DataType cqlType) |
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
java.lang.Class<T> javaType)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
T value)
|
<T> TypeCodec<T> |
CodecRegistry.codecFor(DataType cqlType,
com.google.common.reflect.TypeToken<T> javaType)
|
static DataType.CollectionType |
DataType.list(DataType elementType)
Returns the type of "not frozen" lists of
elementType elements. |
static DataType.CollectionType |
DataType.list(DataType elementType,
boolean frozen)
Returns the type of lists of
elementType elements. |
static DataType.CollectionType |
DataType.map(DataType keyType,
DataType valueType)
Returns the type of "not frozen" maps of
keyType to valueType elements. |
static DataType.CollectionType |
DataType.map(DataType keyType,
DataType valueType,
boolean frozen)
Returns the type of maps of
keyType to valueType elements. |
static TupleType |
TupleType.of(ProtocolVersion protocolVersion,
CodecRegistry codecRegistry,
DataType... types)
Creates a "disconnected" tuple type (you should prefer
Metadata#newTupleType(DataType...) cluster.getMetadata().newTupleType(...) whenever
possible). |
static DataType.CollectionType |
DataType.set(DataType elementType)
Returns the type of "not frozen" sets of
elementType elements. |
static DataType.CollectionType |
DataType.set(DataType elementType,
boolean frozen)
Returns the type of sets of
elementType elements. |
Constructor and Description |
---|
TypeCodec(DataType cqlType,
java.lang.Class<T> javaClass)
This constructor can only be used for non parameterized types.
|
TypeCodec(DataType cqlType,
com.google.common.reflect.TypeToken<T> javaType) |
Copyright © 2009-2022 The Apache Software Foundation