public abstract class CollectionType<T> extends AbstractType<T>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | CollectionType.Kind | 
AbstractType.ComparisonTypeAssignmentTestable.TestResult| Modifier and Type | Field and Description | 
|---|---|
| static CellPath.Serializer | cellPathSerializer | 
| CollectionType.Kind | kind | 
comparisonType, isByteOrderComparable, reverseComparator| Modifier | Constructor and Description | 
|---|---|
| protected  | CollectionType(AbstractType.ComparisonType comparisonType,
              CollectionType.Kind kind) | 
| Modifier and Type | Method and Description | 
|---|---|
| CQL3Type | asCQL3Type() | 
| protected int | collectionSize(java.util.List<java.nio.ByteBuffer> values) | 
| boolean | equals(java.lang.Object o,
      boolean ignoreFreezing)Checks to see if two types are equal when ignoring or not ignoring differences in being frozen, depending on
 the value of the ignoreFreezing parameter. | 
| java.nio.ByteBuffer | fromString(java.lang.String source)get a byte representation of the given string. | 
| abstract CollectionSerializer<T> | getSerializer() | 
| java.lang.String | getString(java.nio.ByteBuffer bytes)get a string representation of the bytes used for various identifier (NOT just for log messages) | 
| boolean | isCollection() | 
| 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 abstract boolean | isCompatibleWithFrozen(CollectionType<?> previous)A version of isCompatibleWith() to deal with non-multicell (frozen) collections | 
| boolean | isFreezable() | 
| boolean | isMap()Checks if this collection is Map. | 
| protected abstract boolean | isValueCompatibleWithFrozen(CollectionType<?> previous)A version of isValueCompatibleWith() to deal with non-multicell (frozen) collections | 
| boolean | isValueCompatibleWithInternal(AbstractType<?> previous)Needed to handle ReversedType in value-compatibility checks. | 
| ColumnSpecification | makeCollectionReceiver(ColumnSpecification collection,
                      boolean isKey) | 
| abstract AbstractType<?> | nameComparator() | 
| protected abstract java.util.List<java.nio.ByteBuffer> | serializedValues(java.util.Iterator<Cell> cells) | 
| java.nio.ByteBuffer | serializeForNativeProtocol(java.util.Iterator<Cell> cells,
                          ProtocolVersion version) | 
| java.lang.String | toString()This must be overriden by subclasses if necessary so that for any
 AbstractType, this == TypeParser.parse(toString()). | 
| void | validateCellValue(java.nio.ByteBuffer cellValue)Validate cell value. | 
| abstract AbstractType<?> | valueComparator() | 
asCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareCustom, compareForCQL, componentsCount, compose, decompose, freeze, freezeNestedMulticellTypes, fromJSONObject, getComponents, getString, isCounter, isEmptyValueMeaningless, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, parseDefaultParameters, readValue, readValue, referencesDuration, referencesUserType, skipValue, testAssignment, toJSONString, toString, validate, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLengthpublic static CellPath.Serializer cellPathSerializer
public final CollectionType.Kind kind
protected CollectionType(AbstractType.ComparisonType comparisonType, CollectionType.Kind kind)
public abstract AbstractType<?> nameComparator()
public abstract AbstractType<?> valueComparator()
protected abstract java.util.List<java.nio.ByteBuffer> serializedValues(java.util.Iterator<Cell> cells)
public abstract CollectionSerializer<T> getSerializer()
getSerializer in class AbstractType<T>public ColumnSpecification makeCollectionReceiver(ColumnSpecification collection, boolean isKey)
public java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractTypegetString in class AbstractType<T>public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<T>public boolean isCollection()
isCollection in class AbstractType<T>public void validateCellValue(java.nio.ByteBuffer cellValue)
                       throws MarshalException
AbstractTypevalidateCellValue in class AbstractType<T>cellValue - ByteBuffer representing cell valueMarshalExceptionpublic boolean isMap()
true if this collection is a Map, false otherwise.public boolean isFreezable()
isFreezable in class AbstractType<T>protected int collectionSize(java.util.List<java.nio.ByteBuffer> values)
public java.nio.ByteBuffer serializeForNativeProtocol(java.util.Iterator<Cell> cells, ProtocolVersion version)
public boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith in class AbstractType<T>public boolean isValueCompatibleWithInternal(AbstractType<?> previous)
AbstractTypeisValueCompatibleWithInternal in class AbstractType<T>protected abstract boolean isCompatibleWithFrozen(CollectionType<?> previous)
protected abstract boolean isValueCompatibleWithFrozen(CollectionType<?> previous)
public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<T>public boolean equals(java.lang.Object o,
                      boolean ignoreFreezing)
AbstractTypeequals in class AbstractType<T>o - type to compareignoreFreezing - if true, differences in the types being frozen will be ignoredpublic java.lang.String toString()
AbstractTypetoString in class AbstractType<T>Copyright © 2018 The Apache Software Foundation