Modifier and Type | Method and Description |
---|---|
DataType |
ColumnDefinition.getType() |
DataType |
BoundStatementBuilder.getType(int i) |
Modifier and Type | Method and Description |
---|---|
default DataType |
SettableById.getType(CqlIdentifier id) |
DataType |
AccessibleById.getType(CqlIdentifier id)
Returns the CQL type of the value for the first occurrence of
id . |
DataType |
AccessibleByIndex.getType(int i)
Returns the CQL type of the
i th value. |
default DataType |
SettableByName.getType(String name) |
DataType |
AccessibleByName.getType(String name)
Returns the CQL type of the value for the first occurrence of
name . |
Modifier and Type | Method and Description |
---|---|
DataType |
AggregateMetadata.getReturnType()
The return type of this aggregate.
|
DataType |
FunctionMetadata.getReturnType() |
DataType |
AggregateMetadata.getStateType()
The state type of this aggregate.
|
DataType |
ColumnMetadata.getType() |
Modifier and Type | Method and Description |
---|---|
List<DataType> |
FunctionSignature.getParameterTypes() |
Modifier and Type | Method and Description |
---|---|
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(CqlIdentifier aggregateId,
DataType... parameterTypes) |
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(String aggregateName,
DataType... parameterTypes)
Shortcut for
KeyspaceMetadata.getAggregate(CqlIdentifier, DataType...)
getAggregate(CqlIdentifier.fromCql(aggregateName), parameterTypes)}. |
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(CqlIdentifier functionId,
DataType... parameterTypes) |
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(String functionName,
DataType... parameterTypes)
|
Modifier and Type | Method and Description |
---|---|
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(CqlIdentifier aggregateId,
Iterable<DataType> parameterTypes) |
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(String aggregateName,
Iterable<DataType> parameterTypes)
|
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(CqlIdentifier functionId,
Iterable<DataType> parameterTypes) |
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(String functionName,
Iterable<DataType> parameterTypes)
|
Constructor and Description |
---|
FunctionSignature(CqlIdentifier name,
DataType... parameterTypes) |
FunctionSignature(String name,
DataType... parameterTypes)
Shortcut for
FunctionSignature(CqlIdentifier, DataType...) new
FunctionSignature(CqlIdentifier.fromCql(name), parameterTypes)}. |
Constructor and Description |
---|
FunctionSignature(CqlIdentifier name,
Iterable<DataType> parameterTypes) |
FunctionSignature(String name,
Iterable<DataType> parameterTypes)
|
Modifier and Type | Interface and Description |
---|---|
interface |
CustomType |
interface |
ListType |
interface |
MapType |
interface |
SetType |
interface |
TupleType |
interface |
UserDefinedType |
Modifier and Type | Field and Description |
---|---|
static DataType |
DataTypes.ASCII |
static DataType |
DataTypes.BIGINT |
static DataType |
DataTypes.BLOB |
static DataType |
DataTypes.BOOLEAN |
static DataType |
DataTypes.COUNTER |
static DataType |
DataTypes.DATE |
static DataType |
DataTypes.DECIMAL |
static DataType |
DataTypes.DOUBLE |
static DataType |
DataTypes.DURATION |
static DataType |
DataTypes.FLOAT |
static DataType |
DataTypes.INET |
static DataType |
DataTypes.INT |
static DataType |
DataTypes.SMALLINT |
static DataType |
DataTypes.TEXT |
static DataType |
DataTypes.TIME |
static DataType |
DataTypes.TIMESTAMP |
static DataType |
DataTypes.TIMEUUID |
static DataType |
DataTypes.TINYINT |
static DataType |
DataTypes.UUID |
static DataType |
DataTypes.VARINT |
Modifier and Type | Method and Description |
---|---|
static DataType |
DataTypes.custom(String className) |
DataType |
SetType.getElementType() |
DataType |
ListType.getElementType() |
DataType |
MapType.getKeyType() |
DataType |
MapType.getValueType() |
Modifier and Type | Method and Description |
---|---|
List<DataType> |
TupleType.getComponentTypes() |
List<DataType> |
UserDefinedType.getFieldTypes() |
Modifier and Type | Method and Description |
---|---|
static ListType |
DataTypes.frozenListOf(DataType elementType) |
static MapType |
DataTypes.frozenMapOf(DataType keyType,
DataType valueType) |
static SetType |
DataTypes.frozenSetOf(DataType elementType) |
static ListType |
DataTypes.listOf(DataType elementType) |
static ListType |
DataTypes.listOf(DataType elementType,
boolean frozen) |
static MapType |
DataTypes.mapOf(DataType keyType,
DataType valueType) |
static MapType |
DataTypes.mapOf(DataType keyType,
DataType valueType,
boolean frozen) |
static SetType |
DataTypes.setOf(DataType elementType) |
static SetType |
DataTypes.setOf(DataType elementType,
boolean frozen) |
static TupleType |
DataTypes.tupleOf(DataType... componentTypes)
Builds a new, detached tuple type.
|
Modifier and Type | Method and Description |
---|---|
DataType |
MappingCodec.getCqlType() |
DataType |
TypeCodec.getCqlType() |
DataType |
CodecNotFoundException.getCqlType() |
Modifier and Type | Method and Description |
---|---|
default boolean |
TypeCodec.accepts(DataType cqlType)
Whether this codec is capable of processing the given CQL type.
|
static TypeCodec<ByteBuffer> |
TypeCodecs.custom(DataType cqlType)
Builds a new codec that maps a CQL custom type to Java's
ByteBuffer . |
Constructor and Description |
---|
CodecNotFoundException(DataType cqlType,
GenericType<?> javaType) |
CodecNotFoundException(Throwable cause,
DataType cqlType,
GenericType<?> javaType) |
Modifier and Type | Method and Description |
---|---|
<JavaTypeT> |
CodecRegistry.codecFor(DataType cqlType)
Returns a codec to convert the given CQL type to the Java type deemed most appropriate to
represent it.
|
default <JavaTypeT> |
CodecRegistry.codecFor(DataType cqlType,
Class<JavaTypeT> javaType)
Shortcut for
codecFor(cqlType,
GenericType.of(javaType)) . |
<JavaTypeT> |
CodecRegistry.codecFor(DataType cqlType,
GenericType<JavaTypeT> javaType)
Returns a codec to handle the conversion between the given types.
|
<JavaTypeT> |
CodecRegistry.codecFor(DataType cqlType,
JavaTypeT value)
Returns a codec to convert the given Java object to the given CQL type.
|
Copyright © 2017–2024. All rights reserved.