public class DynamicCompositeType extends AbstractCompositeType
AbstractCompositeType.ParsedComparator
AbstractType.ComparisonType
AssignmentTestable.TestResult
comparatorSet, comparisonType, isByteOrderComparable, reverseComparator
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
decompose(java.lang.Object... objects) |
AbstractType<?> |
expandUserTypes()
Replace any instances of UserType with equivalent TupleType-s.
|
protected <V> AbstractType<?> |
getAndAppendComparator(int i,
V value,
ValueAccessor<V> accessor,
java.lang.StringBuilder sb,
int offset)
Adds type information from @param bb to @param sb.
|
protected <VL,VR> AbstractType<?> |
getComparator(int i,
VL left,
ValueAccessor<VL> accessorL,
VR right,
ValueAccessor<VR> accessorR,
int offsetL,
int offsetR)
Adds DynamicCompositeType type information from @param bb1 to @param bb2.
|
protected <V> AbstractType<?> |
getComparator(int i,
V value,
ValueAccessor<V> accessor,
int offset) |
protected <V> int |
getComparatorSize(int i,
V value,
ValueAccessor<V> accessor,
int offset) |
static DynamicCompositeType |
getInstance(java.util.Map<java.lang.Byte,AbstractType<?>> aliases) |
static DynamicCompositeType |
getInstance(TypeParser parser) |
boolean |
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.
|
protected AbstractCompositeType.ParsedComparator |
parseComparator(int i,
java.lang.String part)
Used by fromString
|
protected <V> boolean |
readIsStatic(V value,
ValueAccessor<V> accessor) |
<V> boolean |
referencesUserType(V name,
ValueAccessor<V> accessor) |
protected int |
startingOffset(boolean isStatic) |
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any
AbstractType, this == TypeParser.parse(toString()).
|
protected <V> AbstractType<?> |
validateComparator(int i,
V input,
ValueAccessor<V> accessor,
int offset)
Like getComparator, but validates that @param i does not exceed the defined range
|
DynamicCompositeType |
withUpdatedUserType(UserType udt)
Returns an instance of this type with all references to the provided user type recursively replaced with its new
definition.
|
compareCustom, escape, fromJSONObject, fromString, getSerializer, getString, split, toJSONString, validate, validate
asCQL3Type, asCQLTypeStringList, checkComparable, compare, compare, compareCollectionMembers, compareForCQL, compose, compose, decompose, freeze, freezeNestedMulticellTypes, getComponents, getString, getString, isCollection, isCounter, isEmptyValueMeaningless, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, read, readArray, readBuffer, readBuffer, referencesDuration, referencesUserType, skipValue, subTypes, testAssignment, testAssignment, toJSONString, toString, validateCellValue, validateCollectionMember, valueLengthIfFixed, writeValue, writeValue, writtenLength, writtenLength
public static DynamicCompositeType getInstance(TypeParser parser)
public static DynamicCompositeType getInstance(java.util.Map<java.lang.Byte,AbstractType<?>> aliases)
protected <V> boolean readIsStatic(V value, ValueAccessor<V> accessor)
readIsStatic
in class AbstractCompositeType
protected int startingOffset(boolean isStatic)
startingOffset
in class AbstractCompositeType
protected <V> int getComparatorSize(int i, V value, ValueAccessor<V> accessor, int offset)
getComparatorSize
in class AbstractCompositeType
protected <V> AbstractType<?> getComparator(int i, V value, ValueAccessor<V> accessor, int offset)
getComparator
in class AbstractCompositeType
i
- DynamicCompositeType will read the type information from @param bbvalue
- name of type definitionprotected <VL,VR> AbstractType<?> getComparator(int i, VL left, ValueAccessor<VL> accessorL, VR right, ValueAccessor<VR> accessorR, int offsetL, int offsetR)
AbstractCompositeType
getComparator
in class AbstractCompositeType
i
- is ignored.protected <V> AbstractType<?> getAndAppendComparator(int i, V value, ValueAccessor<V> accessor, java.lang.StringBuilder sb, int offset)
AbstractCompositeType
getAndAppendComparator
in class AbstractCompositeType
protected AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
AbstractCompositeType
parseComparator
in class AbstractCompositeType
protected <V> AbstractType<?> validateComparator(int i, V input, ValueAccessor<V> accessor, int offset) throws MarshalException
AbstractCompositeType
validateComparator
in class AbstractCompositeType
MarshalException
public java.nio.ByteBuffer decompose(java.lang.Object... objects)
decompose
in class AbstractCompositeType
public boolean isCompatibleWith(AbstractType<?> previous)
AbstractType
isCompatibleWith
in class AbstractType<java.nio.ByteBuffer>
public <V> boolean referencesUserType(V name, ValueAccessor<V> accessor)
referencesUserType
in class AbstractType<java.nio.ByteBuffer>
public DynamicCompositeType withUpdatedUserType(UserType udt)
AbstractType
withUpdatedUserType
in class AbstractType<java.nio.ByteBuffer>
public AbstractType<?> expandUserTypes()
AbstractType
expandUserTypes
in class AbstractType<java.nio.ByteBuffer>
public java.lang.String toString()
AbstractType
toString
in class AbstractType<java.nio.ByteBuffer>
Copyright © 2009-2022 The Apache Software Foundation