public abstract class AbstractCompositeType extends AbstractType<java.nio.ByteBuffer>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCompositeType.CompositeComponent |
protected static interface |
AbstractCompositeType.ParsedComparator |
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, 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) |
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, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getString, intersects, intersects, isCollection, isCommutative, isCompatibleWith, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, toString, validateCollectionMemberpublic 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 java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractTypegetString in class AbstractType<java.nio.ByteBuffer>public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractTypefromString in class AbstractType<java.nio.ByteBuffer>public void validate(java.nio.ByteBuffer bytes)
throws MarshalException
validate in class AbstractType<java.nio.ByteBuffer>MarshalExceptionpublic 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
MarshalExceptionprotected abstract AbstractCompositeType.ParsedComparator parseComparator(int i, java.lang.String part)
Copyright © 2015 The Apache Software Foundation