public class PartitionerDefinedOrder extends AbstractType<java.nio.ByteBuffer>
AbstractType.ComparisonType
AssignmentTestable.TestResult
comparatorSet, comparisonType, isByteOrderComparable, reverseComparator
Constructor and Description |
---|
PartitionerDefinedOrder(IPartitioner partitioner) |
Modifier and Type | Method and Description |
---|---|
<VL,VR> int |
compareCustom(VL left,
ValueAccessor<VL> accessorL,
VR right,
ValueAccessor<VR> accessorR)
Implement IFF ComparisonType is CUSTOM
Compares the byte 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
|
<V> java.nio.ByteBuffer |
compose(V value,
ValueAccessor<V> accessor) |
java.nio.ByteBuffer |
decompose(java.nio.ByteBuffer value) |
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() |
<V> java.lang.String |
getString(V value,
ValueAccessor<V> accessor)
get a string representation of the bytes used for various identifier (NOT just for log messages)
|
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
Converts the specified value into its JSON representation.
|
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, compare, compareCollectionMembers, compareForCQL, compose, expandUserTypes, freeze, freezeNestedMulticellTypes, getComponents, getString, getString, isCollection, isCompatibleWith, isCounter, isEmptyValueMeaningless, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, read, readArray, readBuffer, readBuffer, referencesDuration, referencesUserType, referencesUserType, skipValue, subTypes, testAssignment, testAssignment, toJSONString, toString, validate, validateCellValue, validateCollectionMember, valueLengthIfFixed, withUpdatedUserType, writeValue, writeValue, writtenLength, writtenLength
public PartitionerDefinedOrder(IPartitioner partitioner)
public static AbstractType<?> getInstance(TypeParser parser)
public <V> java.nio.ByteBuffer compose(V value, ValueAccessor<V> accessor)
compose
in class AbstractType<java.nio.ByteBuffer>
public java.nio.ByteBuffer decompose(java.nio.ByteBuffer value)
decompose
in class AbstractType<java.nio.ByteBuffer>
public <V> java.lang.String getString(V value, ValueAccessor<V> accessor)
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, ProtocolVersion protocolVersion)
AbstractType
The buffer position will stay the same.
toJSONString
in class AbstractType<java.nio.ByteBuffer>
buffer
- the value to convertprotocolVersion
- the protocol version to use for the conversionpublic <VL,VR> int compareCustom(VL left, ValueAccessor<VL> accessorL, VR right, ValueAccessor<VR> accessorR)
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 © 2009-2021 The Apache Software Foundation