public class BytesType extends AbstractType<java.nio.ByteBuffer>
Modifier and Type | Field and Description |
---|---|
static BytesType |
instance |
reverseComparator
Modifier and Type | Method and Description |
---|---|
CQL3Type |
asCQL3Type() |
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 |
isByteOrderComparable() |
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, freeze, fromStringCQL2, getComponents, getString, getString, isCollection, isCounter, isMultiCell, isValueCompatibleWith, parseDefaultParameters, references, toString, toString, validate, validateCellValue, validateCollectionMember
public static final BytesType instance
public int compare(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 isValueCompatibleWithInternal(AbstractType<?> otherType)
AbstractType
isValueCompatibleWithInternal
in class AbstractType<java.nio.ByteBuffer>
public boolean isByteOrderComparable()
isByteOrderComparable
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 © 2020 The Apache Software Foundation