public class BytesType extends AbstractType<java.nio.ByteBuffer>
| Modifier and Type | Field and Description |
|---|---|
static BytesType |
instance |
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator| Modifier and Type | Method and Description |
|---|---|
CQL3Type |
asCQL3Type() |
static int |
bytesCompare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
java.nio.ByteBuffer |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(java.nio.ByteBuffer value) |
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 |
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.
|
boolean |
isValueCompatibleWith(AbstractType<?> previous)
Returns true if values of the previous AbstracType can be read by the this
AbsractType.
|
void |
validate(java.nio.ByteBuffer bytes) |
compareCollectionMembers, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCollection, isCommutative, parseDefaultParameters, toString, validateCollectionMemberpublic static final BytesType instance
public java.nio.ByteBuffer compose(java.nio.ByteBuffer bytes)
compose in class AbstractType<java.nio.ByteBuffer>public java.nio.ByteBuffer decompose(java.nio.ByteBuffer value)
decompose in class AbstractType<java.nio.ByteBuffer>public int compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
public static int bytesCompare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
public java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractTypegetString in class AbstractType<java.nio.ByteBuffer>public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<java.nio.ByteBuffer>public void validate(java.nio.ByteBuffer bytes)
throws MarshalException
validate in class AbstractType<java.nio.ByteBuffer>MarshalExceptionpublic boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith in class AbstractType<java.nio.ByteBuffer>public boolean isValueCompatibleWith(AbstractType<?> previous)
AbstractTypeisValueCompatibleWith in class AbstractType<java.nio.ByteBuffer>public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<java.nio.ByteBuffer>Copyright © 2014 The Apache Software Foundation