public class PartitionerDefinedOrder extends AbstractType<java.nio.ByteBuffer>
AbstractType.ComparisonType
comparisonType, isByteOrderComparable, reverseComparator
Constructor and Description |
---|
PartitionerDefinedOrder(IPartitioner partitioner) |
Modifier and Type | Method and Description |
---|---|
int |
compareCustom(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
Implement IFF ComparisonType is CUSTOM
Compares the ByteBuffer representation of two instances of this class,
for types where this cannot be done by simple in-order comparison of the
unsigned bytes
Standard Java compare semantics
|
java.nio.ByteBuffer |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(java.nio.ByteBuffer bytes) |
Term |
fromJSONObject(java.lang.Object parsed)
Given a parsed JSON string, return a byte representation of the object.
|
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
static AbstractType<?> |
getInstance(TypeParser parser) |
TypeSerializer<java.nio.ByteBuffer> |
getSerializer() |
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes used for various identifier (NOT just for log messages)
|
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
int protocolVersion)
Converts a value to a JSON string.
|
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) |
asCQL3Type, asCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareForCQL, componentsCount, freeze, getComponents, getString, isCollection, isCompatibleWith, isCounter, isEmptyValueMeaningless, isFrozenCollection, isMultiCell, isReversed, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, readValue, readValue, referencesUserType, skipValue, toString, validateCellValue, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLength
public PartitionerDefinedOrder(IPartitioner partitioner)
public static AbstractType<?> getInstance(TypeParser parser)
public java.nio.ByteBuffer compose(java.nio.ByteBuffer bytes)
compose
in class AbstractType<java.nio.ByteBuffer>
public java.nio.ByteBuffer decompose(java.nio.ByteBuffer bytes)
decompose
in class AbstractType<java.nio.ByteBuffer>
public java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractType
getString
in class AbstractType<java.nio.ByteBuffer>
public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractType
fromString
in class AbstractType<java.nio.ByteBuffer>
public Term fromJSONObject(java.lang.Object parsed)
AbstractType
fromJSONObject
in class AbstractType<java.nio.ByteBuffer>
parsed
- the result of parsing a json stringpublic java.lang.String toJSONString(java.nio.ByteBuffer buffer, int protocolVersion)
AbstractType
toJSONString
in class AbstractType<java.nio.ByteBuffer>
public int compareCustom(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
AbstractType
compareCustom
in class AbstractType<java.nio.ByteBuffer>
public void validate(java.nio.ByteBuffer bytes) throws MarshalException
validate
in class AbstractType<java.nio.ByteBuffer>
MarshalException
public TypeSerializer<java.nio.ByteBuffer> getSerializer()
getSerializer
in class AbstractType<java.nio.ByteBuffer>
public java.lang.String toString()
AbstractType
toString
in class AbstractType<java.nio.ByteBuffer>
Copyright © 2017 The Apache Software Foundation