public abstract class CollectionType<T> extends AbstractType<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionType.Kind |
| Modifier and Type | Field and Description |
|---|---|
CollectionType.Kind |
kind |
static int |
MAX_ELEMENTS |
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator| Modifier | Constructor and Description |
|---|---|
protected |
CollectionType(CollectionType.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
appendToStringBuilder(java.lang.StringBuilder sb) |
CQL3Type |
asCQL3Type() |
protected java.util.List<Pair<java.nio.ByteBuffer,Column>> |
enforceLimit(java.util.List<Pair<java.nio.ByteBuffer,Column>> columns) |
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable for log messages
|
boolean |
isCollection() |
abstract AbstractType<?> |
nameComparator() |
static java.nio.ByteBuffer |
pack(java.util.List<java.nio.ByteBuffer> buffers,
int elements) |
protected static java.nio.ByteBuffer |
pack(java.util.List<java.nio.ByteBuffer> buffers,
int elements,
int size) |
abstract java.nio.ByteBuffer |
serialize(java.util.List<Pair<java.nio.ByteBuffer,Column>> columns) |
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any
AbstractType, this == TypeParser.parse(toString()).
|
void |
validate(java.nio.ByteBuffer bytes) |
abstract AbstractType<?> |
valueComparator() |
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getSerializer, getString, intersects, intersects, isCommutative, isCompatibleWith, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, validateCollectionMemberpublic static final int MAX_ELEMENTS
public final CollectionType.Kind kind
protected CollectionType(CollectionType.Kind kind)
public abstract AbstractType<?> nameComparator()
public abstract AbstractType<?> valueComparator()
protected abstract void appendToStringBuilder(java.lang.StringBuilder sb)
public abstract java.nio.ByteBuffer serialize(java.util.List<Pair<java.nio.ByteBuffer,Column>> columns)
public java.lang.String toString()
AbstractTypetoString in class AbstractType<T>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 void validate(java.nio.ByteBuffer bytes)
validate in class AbstractType<T>public boolean isCollection()
isCollection in class AbstractType<T>protected static java.nio.ByteBuffer pack(java.util.List<java.nio.ByteBuffer> buffers,
int elements,
int size)
protected java.util.List<Pair<java.nio.ByteBuffer,Column>> enforceLimit(java.util.List<Pair<java.nio.ByteBuffer,Column>> columns)
public static java.nio.ByteBuffer pack(java.util.List<java.nio.ByteBuffer> buffers,
int elements)
public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<T>Copyright © 2015 The Apache Software Foundation