Modifier and Type | Method and Description |
---|---|
static FunctionResource |
FunctionResource.function(java.lang.String keyspace,
java.lang.String name,
java.util.List<AbstractType<?>> argTypes)
Creates a FunctionResource representing a specific, keyspace-scoped function.
|
void |
AuthMigrationListener.onDropAggregate(java.lang.String ksName,
java.lang.String aggregateName,
java.util.List<AbstractType<?>> argTypes) |
void |
AuthMigrationListener.onDropFunction(java.lang.String ksName,
java.lang.String functionName,
java.util.List<AbstractType<?>> argTypes) |
Modifier and Type | Field and Description |
---|---|
AbstractType<?> |
CFMetaData.DroppedColumn.type |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
ColumnDefinition.cellValueType()
The type of the cell values for cell belonging to this column.
|
AbstractType<?> |
CFMetaData.getColumnDefinitionNameComparator(ColumnDefinition.Kind kind) |
AbstractType<?> |
ColumnDefinition.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
CFMetaData.getKeyValidator() |
AbstractType<?> |
CFMetaData.makeLegacyDefaultValidator() |
AbstractType<?> |
CFMetaData.thriftColumnNameType() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<AbstractType<?>> |
CFMetaData.extractTypes(java.lang.Iterable<ColumnDefinition> clusteringColumns) |
Modifier and Type | Method and Description |
---|---|
CFMetaData.Builder |
CFMetaData.Builder.addClusteringColumn(ColumnIdentifier name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addClusteringColumn(java.lang.String name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addPartitionKey(ColumnIdentifier name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addPartitionKey(java.lang.String name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addRegularColumn(ColumnIdentifier name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addRegularColumn(java.lang.String name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addStaticColumn(ColumnIdentifier name,
AbstractType type) |
CFMetaData.Builder |
CFMetaData.Builder.addStaticColumn(java.lang.String name,
AbstractType type) |
static ColumnDefinition |
ColumnDefinition.clusteringDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> type,
int position) |
static ColumnDefinition |
ColumnDefinition.clusteringDef(java.lang.String ksName,
java.lang.String cfName,
java.lang.String name,
AbstractType<?> type,
int position) |
Selector.Factory |
ColumnDefinition.newSelectorFactory(CFMetaData cfm,
AbstractType<?> expectedType,
java.util.List<ColumnDefinition> defs,
VariableSpecifications boundNames) |
static ColumnDefinition |
ColumnDefinition.partitionKeyDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> type,
int position) |
static ColumnDefinition |
ColumnDefinition.partitionKeyDef(java.lang.String ksName,
java.lang.String cfName,
java.lang.String name,
AbstractType<?> type,
int position) |
static ColumnDefinition |
ColumnDefinition.regularDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> type) |
static ColumnDefinition |
ColumnDefinition.regularDef(java.lang.String ksName,
java.lang.String cfName,
java.lang.String name,
AbstractType<?> type) |
static ColumnDefinition |
ColumnDefinition.staticDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> type) |
ColumnDefinition |
ColumnDefinition.withNewType(AbstractType<?> newType) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Function> |
Schema.findFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Find the function with the specified name
|
Constructor and Description |
---|
ColumnDefinition(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> type,
int position,
ColumnDefinition.Kind kind) |
ColumnDefinition(java.lang.String ksName,
java.lang.String cfName,
ColumnIdentifier name,
AbstractType<?> type,
int position,
ColumnDefinition.Kind kind) |
DroppedColumn(java.lang.String name,
AbstractType<?> type,
long droppedTime) |
Modifier and Type | Field and Description |
---|---|
AbstractType<?> |
ColumnSpecification.type |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
AbstractMarker.Raw.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Constants.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Lists.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Maps.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Sets.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
abstract AbstractType<?> |
Term.Raw.getExactTypeIfKnown(java.lang.String keyspace)
The type of the
term if it can be infered. |
AbstractType<?> |
Tuples.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Tuples.Raw.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Tuples.INRaw.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
TypeCast.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
UserTypes.Literal.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
CQL3Type.getType() |
AbstractType<?> |
CQL3Type.Native.getType() |
AbstractType<?> |
CQL3Type.Custom.getType() |
AbstractType<?> |
CQL3Type.Collection.getType() |
AbstractType<?> |
CQL3Type.UserDefined.getType() |
AbstractType<?> |
CQL3Type.Tuple.getType() |
Modifier and Type | Method and Description |
---|---|
static java.nio.ByteBuffer |
Terms.asBytes(java.lang.String keyspace,
java.lang.String term,
AbstractType type) |
static boolean |
Tuples.checkIfTupleType(AbstractType<?> tuple) |
protected boolean |
ColumnCondition.Bound.compareWithOperator(Operator operator,
AbstractType<?> type,
java.nio.ByteBuffer value,
java.nio.ByteBuffer otherValue)
Returns true if the operator is satisfied (i.e.
|
<T> java.util.List<T> |
UntypedResultSet.Row.getFrozenList(java.lang.String column,
AbstractType<T> type) |
<K,V> java.util.Map<K,V> |
UntypedResultSet.Row.getFrozenMap(java.lang.String column,
AbstractType<K> keyType,
AbstractType<V> valueType) |
<K,V> java.util.Map<K,V> |
UntypedResultSet.Row.getFrozenMap(java.lang.String column,
AbstractType<K> keyType,
AbstractType<V> valueType) |
<T> java.util.Set<T> |
UntypedResultSet.Row.getFrozenSet(java.lang.String column,
AbstractType<T> type) |
static ColumnIdentifier |
ColumnIdentifier.getInterned(AbstractType<?> type,
java.nio.ByteBuffer bytes,
java.lang.String text) |
static ColumnIdentifier |
ColumnIdentifier.getInterned(java.nio.ByteBuffer bytes,
AbstractType<?> type) |
<T> java.util.List<T> |
UntypedResultSet.Row.getList(java.lang.String column,
AbstractType<T> type) |
<K,V> java.util.Map<K,V> |
UntypedResultSet.Row.getMap(java.lang.String column,
AbstractType<K> keyType,
AbstractType<V> valueType) |
<K,V> java.util.Map<K,V> |
UntypedResultSet.Row.getMap(java.lang.String column,
AbstractType<K> keyType,
AbstractType<V> valueType) |
<T> java.util.Set<T> |
UntypedResultSet.Row.getSet(java.lang.String column,
AbstractType<T> type) |
static TupleType |
Tuples.getTupleType(AbstractType<?> tuple) |
boolean |
Operator.isSatisfiedBy(AbstractType<?> type,
java.nio.ByteBuffer leftOperand,
java.nio.ByteBuffer rightOperand)
Whether 2 values satisfy this operator (given the type they should be compared with).
|
protected boolean |
ColumnCondition.Bound.isSatisfiedByValue(java.nio.ByteBuffer value,
Cell c,
AbstractType<?> type,
Operator operator) |
Constructor and Description |
---|
ColumnIdentifier(java.nio.ByteBuffer bytes,
AbstractType<?> type) |
ColumnSpecification(java.lang.String ksName,
java.lang.String cfName,
ColumnIdentifier name,
AbstractType<?> type) |
Custom(AbstractType<?> type) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
AbstractFunction.returnType |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AbstractType<?>> |
AbstractFunction.argTypes |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
FunctionCall.Raw.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
AbstractFunction.returnType() |
AbstractType<?> |
Function.returnType() |
AbstractType<?> |
UDAggregate.stateType() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractType<?>> |
AbstractFunction.argTypes() |
java.util.List<AbstractType<?>> |
Function.argTypes() |
Modifier and Type | Method and Description |
---|---|
static UDFunction |
UDFunction.create(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
static UDAggregate |
UDAggregate.create(Functions functions,
FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
static UDAggregate |
UDAggregate.create(Functions functions,
FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
static UDAggregate |
UDAggregate.createBroken(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
java.nio.ByteBuffer initcond,
InvalidRequestException reason) |
static UDFunction |
UDFunction.createBrokenFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body,
InvalidRequestException reason)
It can happen that a function has been declared (is listed in the scheam) but cannot
be loaded (maybe only on some nodes).
|
static com.datastax.driver.core.DataType |
UDHelper.driverType(AbstractType abstractType)
Returns the Java Driver
DataType for the C* internal type. |
static Function |
FunctionResolver.get(java.lang.String keyspace,
FunctionName name,
java.util.List<? extends AssignmentTestable> providedArgs,
java.lang.String receiverKs,
java.lang.String receiverCf,
AbstractType<?> receiverType) |
static java.lang.String |
CastFcts.getFunctionName(AbstractType<?> outputType)
Creates the name of the cast function use to cast to the specified type.
|
static FromJsonFct |
FromJsonFct.getInstance(AbstractType<?> returnType) |
static boolean |
UDHelper.isNullOrEmpty(AbstractType<?> type,
java.nio.ByteBuffer bb) |
static AggregateFunction |
AggregateFcts.makeCountFunction(AbstractType<?> inputType)
Creates a COUNT function for the specified type.
|
static Function |
BytesConversionFcts.makeFromBlobFunction(AbstractType<?> toType) |
static AggregateFunction |
AggregateFcts.makeMaxFunction(AbstractType<?> inputType)
Creates a MAX function for the specified type.
|
static AggregateFunction |
AggregateFcts.makeMinFunction(AbstractType<?> inputType)
Creates a MIN function for the specified type.
|
static Function |
BytesConversionFcts.makeToBlobFunction(AbstractType<?> fromType) |
Modifier and Type | Method and Description |
---|---|
static UDFunction |
UDFunction.create(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
static UDAggregate |
UDAggregate.create(Functions functions,
FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
static UDAggregate |
UDAggregate.createBroken(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
java.nio.ByteBuffer initcond,
InvalidRequestException reason) |
static UDFunction |
UDFunction.createBrokenFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body,
InvalidRequestException reason)
It can happen that a function has been declared (is listed in the scheam) but cannot
be loaded (maybe only on some nodes).
|
static com.datastax.driver.core.DataType[] |
UDHelper.driverTypes(java.util.List<AbstractType<?>> abstractTypes)
Construct an array containing the Java Driver
DataType s for the
C* internal types. |
static ToJsonFct |
ToJsonFct.getInstance(java.util.List<AbstractType<?>> argTypes) |
Constructor and Description |
---|
AbstractFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType) |
NativeAggregateFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argTypes) |
NativeAggregateFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argTypes) |
NativeFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argTypes) |
NativeFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argTypes) |
NativeScalarFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argsType) |
NativeScalarFunction(java.lang.String name,
AbstractType<?> returnType,
AbstractType<?>... argsType) |
UDAggregate(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
ScalarFunction stateFunc,
ScalarFunction finalFunc,
java.nio.ByteBuffer initcond) |
UDFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
UDFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
com.datastax.driver.core.DataType[] argDataTypes,
AbstractType<?> returnType,
com.datastax.driver.core.DataType returnDataType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
Constructor and Description |
---|
AbstractFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType) |
UDAggregate(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
ScalarFunction stateFunc,
ScalarFunction finalFunc,
java.nio.ByteBuffer initcond) |
UDFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
UDFunction(FunctionName name,
java.util.List<ColumnIdentifier> argNames,
java.util.List<AbstractType<?>> argTypes,
com.datastax.driver.core.DataType[] argDataTypes,
AbstractType<?> returnType,
com.datastax.driver.core.DataType returnDataType,
boolean calledOnNullInput,
java.lang.String language,
java.lang.String body) |
Modifier and Type | Method and Description |
---|---|
void |
CustomIndexExpression.prepareValue(CFMetaData cfm,
AbstractType<?> expressionType,
VariableSpecifications boundNames) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
Selectable.getExactTypeIfKnown(java.lang.String keyspace)
The type of the
Selectable if it can be infered. |
AbstractType<?> |
Selectable.WithTerm.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Selectable.WritetimeOrTTL.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Selectable.WithFunction.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Selectable.WithToJSonFunction.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Selectable.WithCast.getExactTypeIfKnown(java.lang.String keyspace) |
AbstractType<?> |
Selectable.WithFieldSelection.getExactTypeIfKnown(java.lang.String keyspace) |
protected abstract AbstractType<?> |
Selector.Factory.getReturnType()
Returns the type of the values returned by the selector instances created by this factory.
|
abstract AbstractType<?> |
Selector.getType()
Returns the
Selector output type. |
AbstractType<?> |
SimpleSelector.getType() |
AbstractType<?> |
TermSelector.getType() |
Modifier and Type | Method and Description |
---|---|
AbstractType |
CFProperties.getReversableType(ColumnIdentifier targetIdentifier,
AbstractType<?> type) |
Modifier and Type | Method and Description |
---|---|
AbstractType |
CFProperties.getReversableType(ColumnIdentifier targetIdentifier,
AbstractType<?> type) |
Modifier and Type | Method and Description |
---|---|
static AbstractType<?> |
CompactTables.columnDefinitionComparator(java.lang.String kind,
boolean isSuper,
AbstractType<?> rawComparator,
AbstractType<?> rawSubComparator) |
AbstractType<?> |
SerializationHeader.Component.getKeyType() |
AbstractType<?> |
SerializationHeader.getType(ColumnDefinition column) |
AbstractType<?> |
SerializationHeader.keyType() |
static AbstractType<?> |
LegacyLayout.makeLegacyComparator(CFMetaData metadata) |
AbstractType<?> |
ClusteringComparator.subtype(int i)
Returns the type of the ith clustering column of the table.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractType<?>> |
SerializationHeader.clusteringTypes() |
java.util.List<AbstractType<?>> |
SerializationHeader.Component.getClusteringTypes() |
java.util.Map<java.nio.ByteBuffer,AbstractType<?>> |
SerializationHeader.Component.getRegularColumns() |
java.util.Map<java.nio.ByteBuffer,AbstractType<?>> |
SerializationHeader.Component.getStaticColumns() |
java.util.List<AbstractType<?>> |
ClusteringComparator.subtypes()
The "subtypes" of this clustering comparator, that is the types of the clustering
columns for the table this is a comparator of.
|
Modifier and Type | Method and Description |
---|---|
static void |
DataRange.appendKeyString(java.lang.StringBuilder sb,
AbstractType<?> type,
java.nio.ByteBuffer key) |
static AbstractType<?> |
CompactTables.columnDefinitionComparator(java.lang.String kind,
boolean isSuper,
AbstractType<?> rawComparator,
AbstractType<?> rawSubComparator) |
static AbstractType<?> |
CompactTables.columnDefinitionComparator(java.lang.String kind,
boolean isSuper,
AbstractType<?> rawComparator,
AbstractType<?> rawSubComparator) |
Modifier and Type | Method and Description |
---|---|
Clustering |
Clustering.Serializer.deserialize(java.nio.ByteBuffer in,
int version,
java.util.List<AbstractType<?>> types) |
Clustering |
Clustering.Serializer.deserialize(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
ClusteringBoundOrBoundary |
ClusteringBoundOrBoundary.Serializer.deserialize(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
ClusteringPrefix |
ClusteringPrefix.Serializer.deserialize(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
Slice |
Slice.Serializer.deserialize(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
ClusteringBoundOrBoundary |
ClusteringBoundOrBoundary.Serializer.deserializeValues(DataInputPlus in,
ClusteringPrefix.Kind kind,
int version,
java.util.List<AbstractType<?>> types) |
void |
ClusteringBoundOrBoundary.Serializer.serialize(ClusteringBoundOrBoundary bound,
DataOutputPlus out,
int version,
java.util.List<AbstractType<?>> types) |
void |
Clustering.Serializer.serialize(Clustering clustering,
DataOutputPlus out,
int version,
java.util.List<AbstractType<?>> types) |
java.nio.ByteBuffer |
Clustering.Serializer.serialize(Clustering clustering,
int version,
java.util.List<AbstractType<?>> types) |
void |
ClusteringPrefix.Serializer.serialize(ClusteringPrefix clustering,
DataOutputPlus out,
int version,
java.util.List<AbstractType<?>> types) |
void |
Slice.Serializer.serialize(Slice slice,
DataOutputPlus out,
int version,
java.util.List<AbstractType<?>> types) |
long |
ClusteringBoundOrBoundary.Serializer.serializedSize(ClusteringBoundOrBoundary bound,
int version,
java.util.List<AbstractType<?>> types) |
long |
Clustering.Serializer.serializedSize(Clustering clustering,
int version,
java.util.List<AbstractType<?>> types) |
long |
ClusteringPrefix.Serializer.serializedSize(ClusteringPrefix clustering,
int version,
java.util.List<AbstractType<?>> types) |
long |
Slice.Serializer.serializedSize(Slice slice,
int version,
java.util.List<AbstractType<?>> types) |
void |
Clustering.Serializer.skip(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
void |
ClusteringPrefix.Serializer.skip(DataInputPlus in,
int version,
java.util.List<AbstractType<?>> types) |
void |
ClusteringBoundOrBoundary.Serializer.skipValues(DataInputPlus in,
ClusteringPrefix.Kind kind,
int version,
java.util.List<AbstractType<?>> types) |
Constructor and Description |
---|
ClusteringComparator(AbstractType<?>... clusteringTypes) |
Constructor and Description |
---|
ClusteringComparator(java.util.List<AbstractType<?>> clusteringTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
RowFilter.partitionKeyRestrictionsAreSatisfiedBy(DecoratedKey key,
AbstractType<?> keyValidator)
Returns true if all of the expressions within this filter that apply to the partition key are satisfied by
the given key, false otherwise.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCompositeType
A class avoiding class duplication between CompositeType and
DynamicCompositeType.
|
class |
AsciiType |
class |
BooleanType |
class |
BytesType |
class |
ByteType |
class |
CollectionType<T>
The abstract validator that is the base for maps, sets and lists (both frozen and non-frozen).
|
class |
ColumnToCollectionType |
class |
CompositeType |
class |
CounterColumnType |
class |
DateType
Deprecated.
|
class |
DecimalType |
class |
DoubleType |
class |
DurationType
Represents a duration.
|
class |
DynamicCompositeType |
class |
EmptyType
A type that only accept empty data.
|
class |
FloatType |
class |
FrozenType
A fake type that is only used for parsing type strings that include frozen types.
|
class |
InetAddressType |
class |
Int32Type |
class |
IntegerType |
class |
LexicalUUIDType |
class |
ListType<T> |
class |
LongType |
class |
MapType<K,V> |
class |
PartitionerDefinedOrder
for sorting columns representing row keys in the row ordering as determined by a partitioner.
|
class |
ReversedType<T> |
class |
SetType<T> |
class |
ShortType |
class |
SimpleDateType |
class |
TimestampType
Type for date-time values.
|
class |
TimeType
Nanosecond resolution time values
|
class |
TimeUUIDType |
class |
TupleType
This is essentially like a CompositeType, but it's not primarily meant for comparison, just
to pack multiple values together so has a more friendly encoding.
|
class |
UserType
A user defined type.
|
class |
UTF8Type |
class |
UUIDType
Compares UUIDs using the following criteria:
- if count of supplied bytes is less than 16, compare counts - compare UUID version fields - nil UUID is always lesser - compare timestamps if both are time-based - compare lexically, unsigned msb-to-lsb comparison |
Modifier and Type | Field and Description |
---|---|
AbstractType<T> |
ReversedType.baseType |
Modifier and Type | Field and Description |
---|---|
java.util.List<AbstractType<?>> |
CompositeType.types |
protected java.util.List<AbstractType<?>> |
TupleType.types |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
UserType.fieldType(int i) |
AbstractType<?> |
AbstractType.freeze() |
AbstractType<?> |
ListType.freeze() |
AbstractType<?> |
MapType.freeze() |
AbstractType<?> |
SetType.freeze() |
AbstractType<?> |
AbstractType.freezeNestedMulticellTypes()
Returns an AbstractType instance that is equivalent to this one, but with all nested UDTs and collections
explicitly frozen.
|
AbstractType<?> |
ListType.freezeNestedMulticellTypes() |
AbstractType<?> |
MapType.freezeNestedMulticellTypes() |
AbstractType<?> |
SetType.freezeNestedMulticellTypes() |
AbstractType<?> |
UserType.freezeNestedMulticellTypes() |
AbstractType<?> |
AbstractCompositeType.ParsedComparator.getAbstractType() |
protected abstract AbstractType<?> |
AbstractCompositeType.getAndAppendComparator(int i,
java.nio.ByteBuffer bb,
java.lang.StringBuilder sb)
Adds type information from @param bb to @param sb.
|
protected AbstractType<?> |
CompositeType.getAndAppendComparator(int i,
java.nio.ByteBuffer bb,
java.lang.StringBuilder sb) |
protected AbstractType<?> |
DynamicCompositeType.getAndAppendComparator(int i,
java.nio.ByteBuffer bb,
java.lang.StringBuilder sb) |
protected abstract AbstractType<?> |
AbstractCompositeType.getComparator(int i,
java.nio.ByteBuffer bb) |
protected AbstractType<?> |
CompositeType.getComparator(int i,
java.nio.ByteBuffer bb) |
protected AbstractType<?> |
DynamicCompositeType.getComparator(int i,
java.nio.ByteBuffer bb) |
protected abstract AbstractType<?> |
AbstractCompositeType.getComparator(int i,
java.nio.ByteBuffer bb1,
java.nio.ByteBuffer bb2)
Adds DynamicCompositeType type information from @param bb1 to @param bb2.
|
protected AbstractType<?> |
CompositeType.getComparator(int i,
java.nio.ByteBuffer bb1,
java.nio.ByteBuffer bb2) |
protected AbstractType<?> |
DynamicCompositeType.getComparator(int i,
java.nio.ByteBuffer bb1,
java.nio.ByteBuffer bb2) |
AbstractType<T> |
ListType.getElementsType() |
AbstractType<T> |
SetType.getElementsType() |
static AbstractType<?> |
FrozenType.getInstance(TypeParser parser) |
static AbstractType<?> |
PartitionerDefinedOrder.getInstance(TypeParser parser) |
AbstractType<K> |
MapType.getKeysType() |
AbstractType<V> |
MapType.getValuesType() |
abstract AbstractType<?> |
CollectionType.nameComparator() |
AbstractType<java.util.UUID> |
ListType.nameComparator() |
AbstractType<K> |
MapType.nameComparator() |
AbstractType<T> |
SetType.nameComparator() |
AbstractType<?> |
TypeParser.parse()
Parse an AbstractType from current position of this parser.
|
static AbstractType<?> |
TypeParser.parse(java.lang.CharSequence compareWith) |
static AbstractType<?> |
TypeParser.parse(java.lang.String str)
Parse a string containing an type definition.
|
static AbstractType<?> |
AbstractType.parseDefaultParameters(AbstractType<?> baseType,
TypeParser parser) |
AbstractType<?> |
TupleType.type(int i) |
protected abstract AbstractType<?> |
AbstractCompositeType.validateComparator(int i,
java.nio.ByteBuffer bb)
Like getComparator, but validates that @param i does not exceed the defined range
|
protected AbstractType<?> |
CompositeType.validateComparator(int i,
java.nio.ByteBuffer bb) |
protected AbstractType<?> |
DynamicCompositeType.validateComparator(int i,
java.nio.ByteBuffer bb) |
abstract AbstractType<?> |
CollectionType.valueComparator() |
AbstractType<T> |
ListType.valueComparator() |
AbstractType<V> |
MapType.valueComparator() |
AbstractType<?> |
SetType.valueComparator() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AbstractType<?>> |
TupleType.allTypes() |
java.util.List<AbstractType<?>> |
UserType.fieldTypes() |
java.util.Map<java.lang.Byte,AbstractType<?>> |
TypeParser.getAliasParameters() |
java.util.List<AbstractType<?>> |
AbstractType.getComponents()
Return a list of the "subcomponents" this type has.
|
java.util.List<AbstractType<?>> |
CompositeType.getComponents() |
java.util.List<AbstractType<?>> |
TypeParser.getTypeParameters() |
Pair<Pair<java.lang.String,java.nio.ByteBuffer>,java.util.List<Pair<java.nio.ByteBuffer,AbstractType>>> |
TypeParser.getUserTypeParameters() |
Modifier and Type | Method and Description |
---|---|
static int |
MapType.compareMaps(AbstractType<?> keysComparator,
AbstractType<?> valuesComparator,
java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
static int |
MapType.compareMaps(AbstractType<?> keysComparator,
AbstractType<?> valuesComparator,
java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
static CompositeType |
CompositeType.getInstance(AbstractType... types) |
static <K,V> MapType<K,V> |
MapType.getInstance(AbstractType<K> keys,
AbstractType<V> values,
boolean isMultiCell) |
static <K,V> MapType<K,V> |
MapType.getInstance(AbstractType<K> keys,
AbstractType<V> values,
boolean isMultiCell) |
static <T> ReversedType<T> |
ReversedType.getInstance(AbstractType<T> baseType) |
static <T> ListType<T> |
ListType.getInstance(AbstractType<T> elements,
boolean isMultiCell) |
static <T> SetType<T> |
SetType.getInstance(AbstractType<T> elements,
boolean isMultiCell) |
boolean |
AbstractType.isCompatibleWith(AbstractType<?> previous)
Returns true if this comparator is compatible with the provided
previous comparator, that is if previous can safely be replaced by this.
|
boolean |
BytesType.isCompatibleWith(AbstractType<?> previous) |
boolean |
CollectionType.isCompatibleWith(AbstractType<?> previous) |
boolean |
ColumnToCollectionType.isCompatibleWith(AbstractType<?> previous) |
boolean |
CompositeType.isCompatibleWith(AbstractType<?> previous) |
boolean |
DateType.isCompatibleWith(AbstractType<?> previous)
Deprecated.
|
boolean |
DynamicCompositeType.isCompatibleWith(AbstractType<?> previous) |
boolean |
ReversedType.isCompatibleWith(AbstractType<?> otherType) |
boolean |
TimestampType.isCompatibleWith(AbstractType<?> previous) |
boolean |
TupleType.isCompatibleWith(AbstractType<?> previous) |
boolean |
UTF8Type.isCompatibleWith(AbstractType<?> previous) |
boolean |
AbstractType.isValueCompatibleWith(AbstractType<?> otherType)
Returns true if values of the other AbstractType can be read and "reasonably" interpreted by the this
AbstractType.
|
boolean |
ReversedType.isValueCompatibleWith(AbstractType<?> otherType) |
boolean |
UserType.isValueCompatibleWith(AbstractType<?> previous) |
protected boolean |
AbstractType.isValueCompatibleWithInternal(AbstractType<?> otherType)
Needed to handle ReversedType in value-compatibility checks.
|
boolean |
BytesType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
CollectionType.isValueCompatibleWithInternal(AbstractType<?> previous) |
boolean |
CompositeType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
DateType.isValueCompatibleWithInternal(AbstractType<?> otherType)
Deprecated.
|
boolean |
DurationType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
IntegerType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
LongType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
SimpleDateType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
TimeType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
TimestampType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
TupleType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
boolean |
UUIDType.isValueCompatibleWithInternal(AbstractType<?> otherType) |
static AbstractType<?> |
AbstractType.parseDefaultParameters(AbstractType<?> baseType,
TypeParser parser) |
static java.lang.String |
ListType.setOrListToJsonString(java.nio.ByteBuffer buffer,
AbstractType elementsType,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
AbstractType.asCQLTypeStringList(java.util.List<AbstractType<?>> abstractTypes) |
static CompositeType |
CompositeType.getInstance(java.util.List<AbstractType<?>> types) |
static DynamicCompositeType |
DynamicCompositeType.getInstance(java.util.Map<java.lang.Byte,AbstractType<?>> aliases) |
static java.lang.String |
TypeParser.stringifyAliasesParameters(java.util.Map<java.lang.Byte,AbstractType<?>> aliases)
Helper function to ease the writing of AbstractType.toString() methods.
|
static java.lang.String |
TypeParser.stringifyTypeParameters(java.util.List<AbstractType<?>> types)
Helper function to ease the writing of AbstractType.toString() methods.
|
static java.lang.String |
TypeParser.stringifyTypeParameters(java.util.List<AbstractType<?>> types,
boolean ignoreFreezing)
Helper function to ease the writing of AbstractType.toString() methods.
|
static java.lang.String |
TypeParser.stringifyUserTypeParameters(java.lang.String keysace,
java.nio.ByteBuffer typeName,
java.util.List<FieldIdentifier> fields,
java.util.List<AbstractType<?>> columnTypes,
boolean ignoreFreezing) |
Constructor and Description |
---|
SetType(AbstractType<T> elements,
boolean isMultiCell) |
Constructor and Description |
---|
CompositeType(java.util.List<AbstractType<?>> types) |
TupleType(java.util.List<AbstractType<?>> types) |
TupleType(java.util.List<AbstractType<?>> types,
boolean freezeInner) |
UserType(java.lang.String keyspace,
java.nio.ByteBuffer name,
java.util.List<FieldIdentifier> fieldNames,
java.util.List<AbstractType<?>> fieldTypes,
boolean isMultiCell) |
Modifier and Type | Field and Description |
---|---|
static AbstractType<?> |
Murmur3Partitioner.partitionOrdering |
static AbstractType<?> |
RandomPartitioner.partitionOrdering |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
ByteOrderedPartitioner.getTokenValidator() |
AbstractType<?> |
IPartitioner.getTokenValidator() |
AbstractType<?> |
LocalPartitioner.getTokenValidator() |
AbstractType<?> |
Murmur3Partitioner.getTokenValidator() |
AbstractType<?> |
OrderPreservingPartitioner.getTokenValidator() |
AbstractType<?> |
RandomPartitioner.getTokenValidator() |
AbstractType<?> |
ByteOrderedPartitioner.partitionOrdering() |
AbstractType<?> |
IPartitioner.partitionOrdering()
Abstract type that orders the same way as DecoratedKeys provided by this partitioner.
|
AbstractType<?> |
LocalPartitioner.partitionOrdering() |
AbstractType<?> |
Murmur3Partitioner.partitionOrdering() |
AbstractType<?> |
OrderPreservingPartitioner.partitionOrdering() |
AbstractType<?> |
RandomPartitioner.partitionOrdering() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
AbstractBounds.getString(AbstractType<?> keyValidator) |
Constructor and Description |
---|
LocalPartitioner(AbstractType<?> comparator) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
Index.customExpressionValueType()
If the index supports custom search expressions using the
SELECT * FROM table WHERE expr(index_name, expression) syntax, this
method should return the expected type of the expression argument.
|
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
CassandraIndex.customExpressionValueType() |
default AbstractType<?> |
CassandraIndexFunctions.getIndexedValueType(ColumnDefinition indexedColumn)
Returns the type of the the values in the index.
|
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
SASIIndex.customExpressionValueType() |
Modifier and Type | Method and Description |
---|---|
int |
Term.compareTo(AbstractType<?> comparator,
java.nio.ByteBuffer query) |
int |
Term.compareTo(AbstractType<?> comparator,
java.nio.ByteBuffer query,
boolean checkFully) |
protected static PerSSTableIndexWriter |
SASIIndex.newWriter(AbstractType<?> keyValidator,
Descriptor descriptor,
java.util.Map<ColumnDefinition,ColumnIndex> indexes,
OperationType opType) |
Modifier and Type | Method and Description |
---|---|
abstract void |
AbstractAnalyzer.init(java.util.Map<java.lang.String,java.lang.String> options,
AbstractType validator) |
void |
DelimiterAnalyzer.init(java.util.Map<java.lang.String,java.lang.String> options,
AbstractType validator) |
void |
NoOpAnalyzer.init(java.util.Map<java.lang.String,java.lang.String> options,
AbstractType validator) |
void |
NonTokenizingAnalyzer.init(java.util.Map<java.lang.String,java.lang.String> options,
AbstractType validator) |
void |
StandardAnalyzer.init(java.util.Map<java.lang.String,java.lang.String> options,
AbstractType validator) |
void |
NonTokenizingAnalyzer.init(NonTokenizingOptions tokenizerOptions,
AbstractType validator) |
void |
StandardAnalyzer.init(StandardTokenizerOptions tokenizerOptions,
AbstractType validator) |
abstract boolean |
AbstractAnalyzer.isCompatibleWith(AbstractType<?> validator)
Test whether the given validator is compatible with the underlying analyzer.
|
boolean |
DelimiterAnalyzer.isCompatibleWith(AbstractType<?> validator) |
boolean |
NoOpAnalyzer.isCompatibleWith(AbstractType<?> validator) |
boolean |
NonTokenizingAnalyzer.isCompatibleWith(AbstractType<?> validator) |
boolean |
StandardAnalyzer.isCompatibleWith(AbstractType<?> validator) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
ColumnIndex.getValidator() |
AbstractType<?> |
ColumnIndex.keyValidator() |
Modifier and Type | Method and Description |
---|---|
AbstractAnalyzer |
IndexMode.getAnalyzer(AbstractType<?> validator) |
Constructor and Description |
---|
ColumnIndex(AbstractType<?> keyValidator,
ColumnDefinition column,
IndexMetadata metadata) |
DataTracker(AbstractType<?> keyValidator,
ColumnIndex index) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
RangeTermTree.comparator |
protected AbstractType<?> |
TermTree.Builder.comparator |
Constructor and Description |
---|
Builder(OnDiskIndexBuilder.Mode mode,
AbstractType<?> comparator) |
Builder(OnDiskIndexBuilder.Mode mode,
AbstractType<?> comparator) |
PrefixTermTree(java.nio.ByteBuffer min,
java.nio.ByteBuffer max,
Trie<java.nio.ByteBuffer,java.util.Set<SSTableIndex>> trie,
IntervalTree<RangeTermTree.Term,SSTableIndex,Interval<RangeTermTree.Term,SSTableIndex>> ranges,
OnDiskIndexBuilder.Mode mode,
AbstractType<?> comparator) |
RangeTermTree(java.nio.ByteBuffer min,
java.nio.ByteBuffer max,
IntervalTree<RangeTermTree.Term,SSTableIndex,Interval<RangeTermTree.Term,SSTableIndex>> rangeTree,
AbstractType<?> comparator) |
Term(java.nio.ByteBuffer term,
AbstractType<?> comparator) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
OnDiskIndex.comparator |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
OnDiskIndex.getComparator() |
Modifier and Type | Method and Description |
---|---|
OnDiskBlock.SearchResult<T> |
OnDiskBlock.search(AbstractType<?> comparator,
java.nio.ByteBuffer query) |
static OnDiskIndexBuilder.TermSize |
OnDiskIndexBuilder.TermSize.sizeOf(AbstractType<?> comparator) |
Constructor and Description |
---|
OnDiskIndex(java.io.File index,
AbstractType<?> cmp,
com.google.common.base.Function<java.lang.Long,DecoratedKey> keyReader) |
OnDiskIndexBuilder(AbstractType<?> keyComparator,
AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode) |
OnDiskIndexBuilder(AbstractType<?> keyComparator,
AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode) |
OnDiskIndexBuilder(AbstractType<?> keyComparator,
AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode,
boolean marksPartials) |
OnDiskIndexBuilder(AbstractType<?> keyComparator,
AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode,
boolean marksPartials) |
PerSSTableIndexWriter(AbstractType<?> keyValidator,
Descriptor descriptor,
OperationType source,
java.util.Map<ColumnDefinition,ColumnIndex> supportedIndexes) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
MemIndex.keyValidator |
Modifier and Type | Method and Description |
---|---|
static MemIndex |
MemIndex.forColumn(AbstractType<?> keyValidator,
ColumnIndex columnIndex) |
Constructor and Description |
---|
MemIndex(AbstractType<?> keyValidator,
ColumnIndex columnIndex) |
SkipListMemIndex(AbstractType<?> keyValidator,
ColumnIndex columnIndex) |
TrieMemIndex(AbstractType<?> keyValidator,
ColumnIndex columnIndex) |
Modifier and Type | Field and Description |
---|---|
AbstractType<?> |
Expression.validator |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
QueryController.getKeyValidator() |
Constructor and Description |
---|
Expression(java.lang.String name,
AbstractType<?> validator) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
SA.comparator |
Modifier and Type | Method and Description |
---|---|
int |
ByteTerm.compareTo(AbstractType<?> comparator,
Term other) |
int |
CharTerm.compareTo(AbstractType<?> comparator,
Term other) |
abstract int |
Term.compareTo(AbstractType<?> comparator,
Term other) |
Constructor and Description |
---|
IntegralSA(AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode) |
SA(AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode) |
SuffixSA(AbstractType<?> comparator,
OnDiskIndexBuilder.Mode mode) |
Modifier and Type | Method and Description |
---|---|
int |
MappedBuffer.comparePageTo(long offset,
int length,
AbstractType<?> comparator,
java.nio.ByteBuffer other) |
static boolean |
TypeUtil.isValid(java.nio.ByteBuffer term,
AbstractType<?> validator) |
static java.nio.ByteBuffer |
TypeUtil.tryUpcast(java.nio.ByteBuffer term,
AbstractType<?> validator) |
Constructor and Description |
---|
CombinedTerm(AbstractType<?> comparator,
OnDiskIndex.DataTerm term) |
Modifier and Type | Method and Description |
---|---|
static AbstractType<?> |
CQLTypeParser.parse(java.lang.String keyspace,
java.lang.String unparsed,
Types userTypes) |
Modifier and Type | Method and Description |
---|---|
static int |
Functions.typeHashCode(AbstractType<?> t) |
static boolean |
Functions.typesMatch(AbstractType<?> t1,
AbstractType<?> t2) |
static boolean |
Functions.typesMatch(AbstractType<?> t1,
AbstractType<?> t2) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Function> |
Functions.find(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Find the function with the specified name
|
static int |
Functions.typeHashCode(java.util.List<AbstractType<?>> types) |
static boolean |
Functions.typesMatch(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
static boolean |
Functions.typesMatch(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
Functions |
Functions.without(FunctionName name,
java.util.List<AbstractType<?>> argTypes)
Creates a Functions instance with the function with the provided name and argument types removed
|
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
MapSerializer.getSerializedValue(java.nio.ByteBuffer serializedMap,
java.nio.ByteBuffer serializedKey,
AbstractType keyType)
Given a serialized map, gets the value associated with a given key.
|
Modifier and Type | Method and Description |
---|---|
void |
MigrationListener.onCreateAggregate(java.lang.String ksName,
java.lang.String aggregateName,
java.util.List<AbstractType<?>> argTypes) |
void |
MigrationListener.onCreateFunction(java.lang.String ksName,
java.lang.String functionName,
java.util.List<AbstractType<?>> argTypes) |
void |
MigrationListener.onDropAggregate(java.lang.String ksName,
java.lang.String aggregateName,
java.util.List<AbstractType<?>> argTypes) |
void |
MigrationListener.onDropFunction(java.lang.String ksName,
java.lang.String functionName,
java.util.List<AbstractType<?>> argTypes) |
void |
MigrationListener.onUpdateAggregate(java.lang.String ksName,
java.lang.String aggregateName,
java.util.List<AbstractType<?>> argTypes) |
void |
MigrationListener.onUpdateFunction(java.lang.String ksName,
java.lang.String functionName,
java.util.List<AbstractType<?>> argTypes) |
Modifier and Type | Method and Description |
---|---|
static ColumnDefinition |
ThriftConversion.fromThrift(java.lang.String ksName,
java.lang.String cfName,
AbstractType<?> thriftComparator,
AbstractType<?> thriftSubcomparator,
org.apache.cassandra.thrift.ColumnDef thriftColumnDef) |
static ColumnDefinition |
ThriftConversion.fromThrift(java.lang.String ksName,
java.lang.String cfName,
AbstractType<?> thriftComparator,
AbstractType<?> thriftSubcomparator,
org.apache.cassandra.thrift.ColumnDef thriftColumnDef) |
Modifier and Type | Method and Description |
---|---|
static AbstractType |
DataType.toType(Pair<DataType,java.lang.Object> entry) |
Modifier and Type | Method and Description |
---|---|
static Pair<DataType,java.lang.Object> |
DataType.fromType(AbstractType type,
ProtocolVersion version) |
Copyright © 2019 The Apache Software Foundation