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 |
isValueCompatibleWith(AbstractType<?> previous)
Returns true if values of the previous AbstracType can be read by the this
AbsractType.
|
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getString, getString, intersects, intersects, isCollection, isCommutative, parseDefaultParameters, toString, validate, validateCollectionMember
public 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)
AbstractType
fromString
in class AbstractType<java.nio.ByteBuffer>
public boolean isCompatibleWith(AbstractType<?> previous)
AbstractType
isCompatibleWith
in class AbstractType<java.nio.ByteBuffer>
public boolean isValueCompatibleWith(AbstractType<?> previous)
AbstractType
isValueCompatibleWith
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 © 2014 The Apache Software Foundation