public class DynamicCompositeType extends AbstractCompositeType
AbstractCompositeType.CompositeComponent, AbstractCompositeType.ParsedComparator
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
decompose(java.lang.Object... objects) |
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.
|
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
|
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
|
compare, compose, decompose, deconstruct, fromString, getBytes, getShortLength, getString, getWithShortLength, putShortLength, split, validate
asCQL3Type, compareCollectionMembers, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCollection, isCommutative, parseDefaultParameters, validateCollectionMember
public static DynamicCompositeType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public static DynamicCompositeType getInstance(java.util.Map<java.lang.Byte,AbstractType<?>> aliases)
protected AbstractType<?> getComparator(int i, java.nio.ByteBuffer bb)
getComparator
in class AbstractCompositeType
i
- 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)
AbstractCompositeType
getComparator
in class AbstractCompositeType
i
- is ignored.protected AbstractType<?> getAndAppendComparator(int i, java.nio.ByteBuffer bb, java.lang.StringBuilder sb)
AbstractCompositeType
getAndAppendComparator
in class AbstractCompositeType
protected AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
AbstractCompositeType
parseComparator
in class AbstractCompositeType
protected AbstractType<?> validateComparator(int i, java.nio.ByteBuffer bb) 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 java.lang.String toString()
AbstractType
toString
in class AbstractType<java.nio.ByteBuffer>
Copyright © 2013 The Apache Software Foundation