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) |
java.nio.ByteBuffer |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(java.nio.ByteBuffer value) |
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 static java.nio.ByteBuffer |
getBytes(java.nio.ByteBuffer bb,
int length) |
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.
|
protected static int |
getShortLength(java.nio.ByteBuffer bb) |
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable for log messages
|
protected static java.nio.ByteBuffer |
getWithShortLength(java.nio.ByteBuffer bb) |
protected abstract AbstractCompositeType.ParsedComparator |
parseComparator(int i,
java.lang.String part)
Used by fromString
|
protected static void |
putShortLength(java.nio.ByteBuffer bb,
int length) |
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, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCollection, isCommutative, isCompatibleWith, parseDefaultParameters, toString, validateCollectionMember
protected static int getShortLength(java.nio.ByteBuffer bb)
protected static void putShortLength(java.nio.ByteBuffer bb, int length)
protected static java.nio.ByteBuffer getBytes(java.nio.ByteBuffer bb, int length)
protected static java.nio.ByteBuffer getWithShortLength(java.nio.ByteBuffer bb)
public int compare(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
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)
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 java.nio.ByteBuffer compose(java.nio.ByteBuffer bytes)
compose
in class AbstractType<java.nio.ByteBuffer>
public java.nio.ByteBuffer decompose(java.nio.ByteBuffer value)
decompose
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 © 2013 The Apache Software Foundation