public class ReversedType<T> extends AbstractType<T>
| Modifier and Type | Field and Description |
|---|---|
AbstractType<T> |
baseType |
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator| Modifier and Type | Method and Description |
|---|---|
CQL3Type |
asCQL3Type() |
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
T |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(T value) |
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
static <T> ReversedType<T> |
getInstance(AbstractType<T> baseType) |
static <T> ReversedType<T> |
getInstance(TypeParser parser) |
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable for log messages
|
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) |
compareCollectionMembers, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCollection, isCommutative, isCompatibleWith, isValueCompatibleWith, parseDefaultParameters, validateCollectionMemberpublic final AbstractType<T> baseType
public static <T> ReversedType<T> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException
public static <T> ReversedType<T> getInstance(AbstractType<T> baseType)
public int compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
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)
throws MarshalException
validate in class AbstractType<T>MarshalExceptionpublic T compose(java.nio.ByteBuffer bytes)
compose in class AbstractType<T>public java.nio.ByteBuffer decompose(T value)
decompose in class AbstractType<T>public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<T>public java.lang.String toString()
AbstractTypetoString in class AbstractType<T>Copyright © 2014 The Apache Software Foundation