public class DynamicCompositeType extends AbstractCompositeType
AbstractCompositeType.ParsedComparatorAbstractType.ComparisonTypeAssignmentTestable.TestResultcomparatorSet, 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, validateasCQL3Type, 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, writtenLengthpublic 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 AbstractCompositeTypeprotected int startingOffset(boolean isStatic)
startingOffset in class AbstractCompositeTypeprotected <V> int getComparatorSize(int i,
V value,
ValueAccessor<V> accessor,
int offset)
getComparatorSize in class AbstractCompositeTypeprotected <V> AbstractType<?> getComparator(int i, V value, ValueAccessor<V> accessor, int offset)
getComparator in class AbstractCompositeTypei - 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)
AbstractCompositeTypegetComparator in class AbstractCompositeTypei - is ignored.protected <V> AbstractType<?> getAndAppendComparator(int i, V value, ValueAccessor<V> accessor, java.lang.StringBuilder sb, int offset)
AbstractCompositeTypegetAndAppendComparator in class AbstractCompositeTypeprotected AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
AbstractCompositeTypeparseComparator in class AbstractCompositeTypeprotected <V> AbstractType<?> validateComparator(int i, V input, ValueAccessor<V> accessor, int offset) throws MarshalException
AbstractCompositeTypevalidateComparator in class AbstractCompositeTypeMarshalExceptionpublic java.nio.ByteBuffer decompose(java.lang.Object... objects)
decompose in class AbstractCompositeTypepublic boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith 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)
AbstractTypewithUpdatedUserType in class AbstractType<java.nio.ByteBuffer>public AbstractType<?> expandUserTypes()
AbstractTypeexpandUserTypes in class AbstractType<java.nio.ByteBuffer>public java.lang.String toString()
AbstractTypetoString in class AbstractType<java.nio.ByteBuffer>Copyright © 2009-2022 The Apache Software Foundation