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.
|
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.
|
TypeSerializer<java.nio.ByteBuffer> |
getSerializer() |
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
|
static java.nio.ByteBuffer |
getWithShortLength(java.nio.ByteBuffer bb) |
protected abstract AbstractCompositeType.ParsedComparator |
parseComparator(int i,
java.lang.String part)
Used by fromString
|
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, componentsCount, compose, decompose, fromStringCQL2, getComponents, getString, isCollection, isCompatibleWith, isCounter, isValueCompatibleWith, parseDefaultParameters, toString, validateCollectionMember
public static int getShortLength(java.nio.ByteBuffer bb)
public static void putShortLength(java.nio.ByteBuffer bb, int length)
public static java.nio.ByteBuffer getBytes(java.nio.ByteBuffer bb, int length)
public 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 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 © 2014 The Apache Software Foundation