public abstract class AbstractCompositeType extends AbstractType<java.nio.ByteBuffer>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCompositeType.CompositeComponent |
protected static interface |
AbstractCompositeType.ParsedComparator |
reverseComparator
Constructor and Description |
---|
AbstractCompositeType() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
abstract java.nio.ByteBuffer |
decompose(java.lang.Object... objects) |
java.util.List<AbstractCompositeType.CompositeComponent> |
deconstruct(java.nio.ByteBuffer bytes) |
static java.lang.String |
escape(java.lang.String input) |
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 suitable 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) |
java.nio.ByteBuffer[] |
split(java.nio.ByteBuffer name)
Split a composite column names into it's components.
|
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, compareCollectionMembers, componentsCount, compose, decompose, freeze, fromStringCQL2, getComponents, getString, isByteOrderComparable, isCollection, isCompatibleWith, isCounter, isMultiCell, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, references, toString, toString, validateCellValue, validateCollectionMember
public int compare(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
protected abstract boolean readIsStatic(java.nio.ByteBuffer bb)
public java.nio.ByteBuffer[] split(java.nio.ByteBuffer name)
public java.util.List<AbstractCompositeType.CompositeComponent> deconstruct(java.nio.ByteBuffer bytes)
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 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>
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