public abstract class AbstractCompositeType extends AbstractType<java.nio.ByteBuffer>
Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractCompositeType.ParsedComparator |
AbstractType.ComparisonType
AssignmentTestable.TestResult
comparisonType, isByteOrderComparable, reverseComparator
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompositeType() |
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
|
abstract java.nio.ByteBuffer |
decompose(java.lang.Object... objects) |
static java.lang.String |
escape(java.lang.String input) |
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.
|
protected abstract AbstractType<?> |
getAndAppendComparator(int i,
java.nio.ByteBuffer bb,
java.lang.StringBuilder sb)
Adds type information from @param bb to @param sb.
|
protected abstract AbstractType<?> |
getComparator(int i,
java.nio.ByteBuffer bb) |
protected abstract AbstractType<?> |
getComparator(int i,
java.nio.ByteBuffer bb1,
java.nio.ByteBuffer bb2)
Adds DynamicCompositeType type information from @param bb1 to @param bb2.
|
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)
|
protected abstract AbstractCompositeType.ParsedComparator |
parseComparator(int i,
java.lang.String part)
Used by fromString
|
protected abstract boolean |
readIsStatic(java.nio.ByteBuffer bb) |
boolean |
referencesUserType(java.lang.String name) |
java.nio.ByteBuffer[] |
split(java.nio.ByteBuffer name)
Split a composite column names into it's components.
|
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
Converts the specified value into its JSON representation.
|
void |
validate(java.nio.ByteBuffer bytes) |
protected abstract AbstractType<?> |
validateComparator(int i,
java.nio.ByteBuffer bb)
Like getComparator, but validates that @param i does not exceed the defined range
|
asCQL3Type, asCQLTypeStringList, checkComparable, compare, compareCollectionMembers, compareForCQL, componentsCount, compose, decompose, equals, freeze, freezeNestedMulticellTypes, getComponents, getString, isCollection, isCompatibleWith, isCounter, isEmptyValueMeaningless, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, readValue, readValue, referencesDuration, skipValue, testAssignment, toString, toString, validateCellValue, validateCollectionMember, valueLengthIfFixed, writeValue, writtenLength
public int compareCustom(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
AbstractType
compareCustom
in class AbstractType<java.nio.ByteBuffer>
protected abstract boolean readIsStatic(java.nio.ByteBuffer bb)
public java.nio.ByteBuffer[] split(java.nio.ByteBuffer name)
public static java.lang.String escape(java.lang.String input)
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, 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 void validate(java.nio.ByteBuffer bytes) throws MarshalException
validate
in class AbstractType<java.nio.ByteBuffer>
MarshalException
public abstract java.nio.ByteBuffer decompose(java.lang.Object... objects)
public TypeSerializer<java.nio.ByteBuffer> getSerializer()
getSerializer
in class AbstractType<java.nio.ByteBuffer>
public boolean referencesUserType(java.lang.String name)
referencesUserType
in class AbstractType<java.nio.ByteBuffer>
protected abstract AbstractType<?> getComparator(int i, java.nio.ByteBuffer bb)
i
- DynamicCompositeType will read the type information from @param bbbb
- name of type definitionprotected abstract AbstractType<?> getComparator(int i, java.nio.ByteBuffer bb1, java.nio.ByteBuffer bb2)
i
- is ignored.protected abstract AbstractType<?> getAndAppendComparator(int i, java.nio.ByteBuffer bb, java.lang.StringBuilder sb)
protected abstract AbstractType<?> validateComparator(int i, java.nio.ByteBuffer bb) throws MarshalException
MarshalException
protected abstract AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
Copyright © 2020 The Apache Software Foundation