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 |
fromString(java.lang.String source)
get a byte representation of the given string.
|
TypeSerializer<java.nio.ByteBuffer> |
getSerializer() |
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 |
isValueCompatibleWithInternal(AbstractType<?> otherType)
Needed to handle ReversedType in value-compatibility checks.
|
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getString, getString, intersects, intersects, isCollection, isCommutative, isValueCompatibleWith, parseDefaultParameters, toString, validate, validateCollectionMemberpublic static final BytesType instance
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.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<java.nio.ByteBuffer>public boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith in class AbstractType<java.nio.ByteBuffer>public boolean isValueCompatibleWithInternal(AbstractType<?> otherType)
AbstractTypeisValueCompatibleWithInternal in class AbstractType<java.nio.ByteBuffer>public CQL3Type asCQL3Type()
asCQL3Type in class AbstractType<java.nio.ByteBuffer>public TypeSerializer<java.nio.ByteBuffer> getSerializer()
getSerializer in class AbstractType<java.nio.ByteBuffer>Copyright © 2015 The Apache Software Foundation