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 | Method and Description |
---|---|
AbstractType<?> |
CFMetaData.getColumnDefinitionComparator(ColumnDefinition def) |
AbstractType<?> |
CFMetaData.getComponentComparator(java.lang.Integer componentIndex,
ColumnDefinition.Kind kind) |
AbstractType<?> |
CFMetaData.getDefaultValidator() |
AbstractType<?> |
CFMetaData.getKeyValidator() |
AbstractType<?> |
CFMetaData.getValueValidator(CellName cellName) |
static AbstractType<?> |
CFMetaData.makeRawAbstractType(AbstractType<?> comparator,
AbstractType<?> subComparator) |
Modifier and Type | Method and Description |
---|---|
static boolean |
CFMetaData.calculateIsDense(AbstractType<?> comparator,
java.util.Collection<ColumnDefinition> defs) |
static ColumnDefinition |
ColumnDefinition.clusteringKeyDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex) |
static ColumnDefinition |
ColumnDefinition.compactValueDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator) |
CFMetaData |
CFMetaData.defaultValidator(AbstractType<?> prop) |
static CFMetaData |
CFMetaData.denseCFMetaData(java.lang.String keyspace,
java.lang.String name,
AbstractType<?> comp) |
static CFMetaData |
CFMetaData.denseCFMetaData(java.lang.String keyspace,
java.lang.String name,
AbstractType<?> comp,
AbstractType<?> subcc) |
static CFMetaData |
CFMetaData.denseCFMetaData(java.lang.String keyspace,
java.lang.String name,
AbstractType<?> comp,
AbstractType<?> subcc) |
CFMetaData |
CFMetaData.keyValidator(AbstractType<?> prop) |
static AbstractType<?> |
CFMetaData.makeRawAbstractType(AbstractType<?> comparator,
AbstractType<?> subComparator) |
static AbstractType<?> |
CFMetaData.makeRawAbstractType(AbstractType<?> comparator,
AbstractType<?> subComparator) |
static ColumnDefinition |
ColumnDefinition.partitionKeyDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex) |
static ColumnDefinition |
ColumnDefinition.partitionKeyDef(java.lang.String ksName,
java.lang.String cfName,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex) |
static ColumnDefinition |
ColumnDefinition.regularDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex) |
static CFMetaData |
CFMetaData.sparseCFMetaData(java.lang.String keyspace,
java.lang.String name,
AbstractType<?> comp) |
static ColumnDefinition |
ColumnDefinition.staticDef(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex) |
ColumnDefinition |
ColumnDefinition.withNewType(AbstractType<?> newType) |
Constructor and Description |
---|
ColumnDefinition(CFMetaData cfm,
java.nio.ByteBuffer name,
AbstractType<?> validator,
java.lang.Integer componentIndex,
ColumnDefinition.Kind kind) |
ColumnDefinition(java.lang.String ksName,
java.lang.String cfName,
ColumnIdentifier name,
AbstractType<?> validator,
IndexType indexType,
java.util.Map<java.lang.String,java.lang.String> indexOptions,
java.lang.String indexName,
java.lang.Integer componentIndex,
ColumnDefinition.Kind kind) |
Modifier and Type | Field and Description |
---|---|
AbstractType<?> |
ColumnSpecification.type |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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.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) |
protected boolean |
ColumnCondition.Bound.isSatisfiedByValue(java.nio.ByteBuffer value,
Cell c,
AbstractType<?> type,
Operator operator,
long now) |
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 |
protected AbstractType<?> |
UDAggregate.stateType |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AbstractType<?>> |
AbstractFunction.argTypes |
Modifier and Type | Method and Description |
---|---|
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 UDAggregate |
UDAggregate.create(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
static UDAggregate |
UDAggregate.create(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
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.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 |
Functions.get(java.lang.String keyspace,
FunctionName name,
java.util.List<? extends AssignmentTestable> providedArgs,
java.lang.String receiverKs,
java.lang.String receiverCf,
AbstractType<?> receiverType) |
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) |
static boolean |
Functions.typeEquals(AbstractType<?> t1,
AbstractType<?> t2) |
static boolean |
Functions.typeEquals(AbstractType<?> t1,
AbstractType<?> t2) |
static int |
Functions.typeHashCode(AbstractType<?> t) |
Modifier and Type | Method and Description |
---|---|
static UDAggregate |
UDAggregate.create(FunctionName name,
java.util.List<AbstractType<?>> argTypes,
AbstractType<?> returnType,
FunctionName stateFunc,
FunctionName finalFunc,
AbstractType<?> stateType,
java.nio.ByteBuffer initcond) |
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.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 Function |
Functions.find(FunctionName name,
java.util.List<AbstractType<?>> argTypes) |
static ToJsonFct |
ToJsonFct.getInstance(java.util.List<AbstractType<?>> argTypes) |
static void |
Functions.removeFunction(FunctionName name,
java.util.List<AbstractType<?>> argTypes) |
static boolean |
Functions.typeEquals(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
static boolean |
Functions.typeEquals(java.util.List<AbstractType<?>> t1,
java.util.List<AbstractType<?>> t2) |
static int |
Functions.typeHashCode(java.util.List<AbstractType<?>> types) |
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 |
---|---|
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() |
Modifier and Type | Method and Description |
---|---|
static AbstractType<?> |
SuperColumns.getComparatorFor(CFMetaData metadata,
boolean subColumn) |
static AbstractType<?> |
SuperColumns.getComparatorFor(CFMetaData metadata,
java.nio.ByteBuffer superColumn) |
Modifier and Type | Field and Description |
---|---|
protected AbstractType<?> |
AbstractSimpleCellNameType.type |
protected AbstractType<?> |
SimpleCType.type |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
AbstractCompoundCellNameType.asAbstractType() |
AbstractType<?> |
AbstractSimpleCellNameType.asAbstractType() |
AbstractType<?> |
CType.asAbstractType()
Returns a AbstractType corresponding to this CType for thrift sake.
|
AbstractType<?> |
CompoundCType.asAbstractType() |
AbstractType<?> |
SimpleCType.asAbstractType() |
AbstractType<?> |
AbstractCompoundCellNameType.subtype(int i) |
AbstractType<?> |
AbstractSimpleCellNameType.subtype(int i) |
AbstractType<?> |
CType.subtype(int i)
Gets a subtype of this CType.
|
AbstractType<?> |
CompoundCType.subtype(int i) |
AbstractType<?> |
SimpleCType.subtype(int i) |
Modifier and Type | Method and Description |
---|---|
static CellNameType |
CellNames.fromAbstractType(AbstractType<?> type,
boolean isDense) |
protected static CompoundCType |
CompoundSparseCellNameType.makeCType(CompoundCType clusteringType,
AbstractType<?> columnNameType,
ColumnToCollectionType collectionType) |
CType |
CType.setSubtype(int position,
AbstractType<?> newType)
Returns a new CType that is equivalent to this CType but with
one of the subtype replaced by the provided new type.
|
CellNameType |
CellNameType.setSubtype(int position,
AbstractType<?> newType)
Returns a new CellNameType that is equivalent to this one but with one
of the subtype replaced by the provided new type.
|
CompoundCType |
CompoundCType.setSubtype(int position,
AbstractType<?> newType) |
CellNameType |
CompoundDenseCellNameType.setSubtype(int position,
AbstractType<?> newType) |
CellNameType |
CompoundSparseCellNameType.setSubtype(int position,
AbstractType<?> newType) |
CellNameType |
CompoundSparseCellNameType.WithCollection.setSubtype(int position,
AbstractType<?> newType) |
CType |
SimpleCType.setSubtype(int position,
AbstractType<?> newType) |
CellNameType |
SimpleDenseCellNameType.setSubtype(int position,
AbstractType<?> newType) |
CellNameType |
SimpleSparseCellNameType.setSubtype(int position,
AbstractType<?> newType) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
AbstractCType.isByteOrderComparable(java.lang.Iterable<AbstractType<?>> types) |
Constructor and Description |
---|
AbstractSimpleCellNameType(AbstractType<?> type) |
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types,
AbstractType<?> columnNameType) |
SimpleCType(AbstractType<?> type) |
SimpleDenseCellNameType(AbstractType<?> type) |
SimpleSparseCellNameType(AbstractType<?> type) |
Constructor and Description |
---|
CompoundCType(java.util.List<AbstractType<?>> types) |
CompoundDenseCellNameType(java.util.List<AbstractType<?>> types) |
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types) |
CompoundSparseCellNameType(java.util.List<AbstractType<?>> types,
AbstractType<?> columnNameType) |
WithCollection(java.util.List<AbstractType<?>> types,
ColumnToCollectionType collectionType) |
Modifier and Type | Field and Description |
---|---|
static AbstractType<?> |
SecondaryIndex.keyComparator |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractType |
AbstractSimplePerColumnSecondaryIndex.getExpressionComparator() |
protected AbstractType<?> |
AbstractSimplePerColumnSecondaryIndex.getIndexKeyComparator() |
Modifier and Type | Method and Description |
---|---|
protected AbstractType<?> |
CompositesIndex.getExpressionComparator() |
protected AbstractType<?> |
CompositesIndexOnCollectionKey.getIndexKeyComparator() |
protected AbstractType<?> |
CompositesIndexOnCollectionKeyAndValue.getIndexKeyComparator() |
protected AbstractType<?> |
CompositesIndexOnCollectionValue.getIndexKeyComparator() |
Modifier and Type | Method and Description |
---|---|
protected AbstractType |
KeysIndex.getExpressionComparator() |
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 |
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 |
LocalByPartionerType
for sorting columns representing row keys in the row ordering as determined by a partitioner.
|
class |
LongType |
class |
MapType<K,V> |
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 |
AbstractType<?> |
AbstractCompositeType.CompositeComponent.comparator |
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<?> |
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) |
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<?> |
TypeParser.parseCqlName(java.lang.String str)
Turns user facing type names into Abstract Types, 'text' -> UTF8Type
|
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) |
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 |
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) |
boolean |
AbstractType.references(AbstractType<?> check)
Checks whether this type or any of the types this type contains references the given type.
|
boolean |
CompositeType.references(AbstractType<?> check) |
boolean |
ListType.references(AbstractType<?> check) |
boolean |
MapType.references(AbstractType<?> check) |
boolean |
ReversedType.references(AbstractType<?> check) |
boolean |
SetType.references(AbstractType<?> check) |
boolean |
TupleType.references(AbstractType<?> check) |
static java.lang.String |
ListType.setOrListToJsonString(java.nio.ByteBuffer buffer,
AbstractType elementsType,
int 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<java.nio.ByteBuffer> columnNames,
java.util.List<AbstractType<?>> columnTypes) |
Constructor and Description |
---|
CompositeComponent(AbstractType<?> comparator,
java.nio.ByteBuffer value) |
SetType(AbstractType<T> elements,
boolean isMultiCell) |
Constructor and Description |
---|
CompositeType(java.util.List<AbstractType<?>> types) |
TupleType(java.util.List<AbstractType<?>> types) |
UserType(java.lang.String keyspace,
java.nio.ByteBuffer name,
java.util.List<java.nio.ByteBuffer> fieldNames,
java.util.List<AbstractType<?>> fieldTypes) |
Modifier and Type | Method and Description |
---|---|
AbstractType<?> |
ByteOrderedPartitioner.getTokenValidator() |
AbstractType<?> |
IPartitioner.getTokenValidator() |
AbstractType<?> |
LocalPartitioner.getTokenValidator() |
AbstractType<?> |
Murmur3Partitioner.getTokenValidator() |
AbstractType<?> |
OrderPreservingPartitioner.getTokenValidator() |
AbstractType<?> |
RandomPartitioner.getTokenValidator() |
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 |
---|---|
protected AbstractType |
CassandraStorage.parseType(java.lang.String type)
Deprecated.
parse the string to a cassandra data type
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<CassandraStorage.MarshallerType,AbstractType> |
CassandraStorage.getDefaultMarshallers(CfDef cfDef)
Deprecated.
construct a map to store the mashaller type to cassandra data type mapping
|
protected java.util.Map<java.nio.ByteBuffer,AbstractType> |
CassandraStorage.getValidatorMap(CfDef cfDef)
Deprecated.
get the validators
|
protected java.util.Map<java.nio.ByteBuffer,AbstractType> |
CqlNativeStorage.getValidatorMap(org.apache.cassandra.hadoop.pig.TableInfo cfDef)
Deprecated.
get the validators
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.Object |
StorageHelper.cassandraToObj(AbstractType validator,
java.nio.ByteBuffer value,
int nativeProtocolVersion)
Deprecated.
|
protected org.apache.pig.data.Tuple |
CassandraStorage.columnToTuple(ColumnFamilyRecordReader.Column column,
CfDef cfDef,
AbstractType comparator)
Deprecated.
convert a column to a tuple
|
protected static byte |
StorageHelper.getPigType(AbstractType type)
Deprecated.
get pig type for the cassandra data type
|
Constructor and Description |
---|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB)
Deprecated.
|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB)
Deprecated.
|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB,
CompressionParameters compressParameters)
Deprecated.
Create a new buffering writer.
|
SSTableSimpleUnsortedWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator,
int bufferSizeInMB,
CompressionParameters compressParameters)
Deprecated.
Create a new buffering writer.
|
SSTableSimpleWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator)
Deprecated.
Create a new writer.
|
SSTableSimpleWriter(java.io.File directory,
IPartitioner partitioner,
java.lang.String keyspace,
java.lang.String columnFamily,
AbstractType<?> comparator,
AbstractType<?> subComparator)
Deprecated.
Create a new writer.
|
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,
ColumnDef thriftColumnDef) |
static ColumnDefinition |
ThriftConversion.fromThrift(java.lang.String ksName,
java.lang.String cfName,
AbstractType<?> thriftComparator,
AbstractType<?> thriftSubcomparator,
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,
int version) |
Copyright © 2020 The Apache Software Foundation