public class CompositeType extends AbstractCompositeType
| Modifier and Type | Class and Description | 
|---|---|
| static class  | CompositeType.Builder | 
AbstractCompositeType.ParsedComparatorAbstractType.ComparisonTypeAssignmentTestable.TestResult| Modifier and Type | Field and Description | 
|---|---|
| static int | STATIC_MARKER | 
| java.util.List<AbstractType<?>> | types | 
comparisonType, isByteOrderComparable, reverseComparator| Modifier | Constructor and Description | 
|---|---|
| protected  | CompositeType(java.util.List<AbstractType<?>> types) | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.nio.ByteBuffer | build(boolean isStatic,
     java.nio.ByteBuffer... buffers) | 
| static java.nio.ByteBuffer | build(java.nio.ByteBuffer... buffers) | 
| CompositeType.Builder | builder() | 
| int | componentsCount()The number of subcomponents this type has. | 
| java.nio.ByteBuffer | decompose(java.lang.Object... objects) | 
| static java.nio.ByteBuffer | extractComponent(java.nio.ByteBuffer bb,
                int idx) | 
| java.nio.ByteBuffer | extractLastComponent(java.nio.ByteBuffer bb) | 
| protected AbstractType<?> | getAndAppendComparator(int i,
                      java.nio.ByteBuffer bb,
                      java.lang.StringBuilder sb)Adds type information from @param bb to @param sb. | 
| protected AbstractType<?> | getComparator(int i,
             java.nio.ByteBuffer bb) | 
| protected AbstractType<?> | getComparator(int i,
             java.nio.ByteBuffer bb1,
             java.nio.ByteBuffer bb2)Adds DynamicCompositeType type information from @param bb1 to @param bb2. | 
| java.util.List<AbstractType<?>> | getComponents()Return a list of the "subcomponents" this type has. | 
| static CompositeType | getInstance(AbstractType... types) | 
| static CompositeType | getInstance(java.util.List<AbstractType<?>> types) | 
| static CompositeType | 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. | 
| static boolean | isStaticName(java.nio.ByteBuffer bb) | 
| boolean | isValueCompatibleWithInternal(AbstractType<?> otherType)Needed to handle ReversedType in value-compatibility checks. | 
| static byte | lastEOC(java.nio.ByteBuffer name) | 
| protected AbstractCompositeType.ParsedComparator | parseComparator(int i,
               java.lang.String part)Used by fromString | 
| protected boolean | readIsStatic(java.nio.ByteBuffer bb) | 
| java.nio.ByteBuffer[] | split(java.nio.ByteBuffer name)Split a composite column names into it's components. | 
| static java.util.List<java.nio.ByteBuffer> | splitName(java.nio.ByteBuffer name) | 
| java.lang.String | toString()This must be overriden by subclasses if necessary so that for any
 AbstractType, this == TypeParser.parse(toString()). | 
| protected AbstractType<?> | validateComparator(int i,
                  java.nio.ByteBuffer bb)Like getComparator, but validates that @param i does not exceed the defined range | 
compareCustom, escape, fromJSONObject, fromString, getSerializer, getString, referencesUserType, toJSONString, validateasCQL3Type, asCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareForCQL, compose, decompose, equals, freeze, freezeNestedMulticellTypes, getString, isCollection, isCounter, isEmptyValueMeaningless, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, parseDefaultParameters, readValue, readValue, referencesDuration, skipValue, testAssignment, toString, validateCellValue, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLengthpublic static final int STATIC_MARKER
public final java.util.List<AbstractType<?>> types
protected CompositeType(java.util.List<AbstractType<?>> types)
public static CompositeType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public static CompositeType getInstance(AbstractType... types)
protected boolean readIsStatic(java.nio.ByteBuffer bb)
readIsStatic in class AbstractCompositeTypepublic static CompositeType getInstance(java.util.List<AbstractType<?>> types)
protected AbstractType<?> getComparator(int i, java.nio.ByteBuffer bb)
getComparator in class AbstractCompositeTypei - DynamicCompositeType will read the type information from @param bbbb - name of type definitionprotected AbstractType<?> getComparator(int i, java.nio.ByteBuffer bb1, java.nio.ByteBuffer bb2)
AbstractCompositeTypegetComparator in class AbstractCompositeTypei - is ignored.protected AbstractType<?> getAndAppendComparator(int i, java.nio.ByteBuffer bb, java.lang.StringBuilder sb)
AbstractCompositeTypegetAndAppendComparator in class AbstractCompositeTypeprotected AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
AbstractCompositeTypeparseComparator in class AbstractCompositeTypeprotected AbstractType<?> validateComparator(int i, java.nio.ByteBuffer bb) throws MarshalException
AbstractCompositeTypevalidateComparator in class AbstractCompositeTypeMarshalExceptionpublic java.nio.ByteBuffer decompose(java.lang.Object... objects)
decompose in class AbstractCompositeTypepublic java.nio.ByteBuffer[] split(java.nio.ByteBuffer name)
AbstractCompositeTypesplit in class AbstractCompositeTypepublic static java.util.List<java.nio.ByteBuffer> splitName(java.nio.ByteBuffer name)
public static byte lastEOC(java.nio.ByteBuffer name)
public static java.nio.ByteBuffer extractComponent(java.nio.ByteBuffer bb,
                                                   int idx)
public java.nio.ByteBuffer extractLastComponent(java.nio.ByteBuffer bb)
public static boolean isStaticName(java.nio.ByteBuffer bb)
public int componentsCount()
AbstractTypecomponentsCount in class AbstractType<java.nio.ByteBuffer>public java.util.List<AbstractType<?>> getComponents()
AbstractTypegetComponents in class AbstractType<java.nio.ByteBuffer>public boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith in class AbstractType<java.nio.ByteBuffer>public boolean isValueCompatibleWithInternal(AbstractType<?> otherType)
AbstractTypeisValueCompatibleWithInternal in class AbstractType<java.nio.ByteBuffer>public java.lang.String toString()
AbstractTypetoString in class AbstractType<java.nio.ByteBuffer>public CompositeType.Builder builder()
public static java.nio.ByteBuffer build(java.nio.ByteBuffer... buffers)
public static java.nio.ByteBuffer build(boolean isStatic,
                                        java.nio.ByteBuffer... buffers)
Copyright © 2018 The Apache Software Foundation