public class ColumnToCollectionType extends AbstractType<java.nio.ByteBuffer>
AbstractType.ComparisonTypeAssignmentTestable.TestResult| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.nio.ByteBuffer,CollectionType> |
defined |
comparisonType, isByteOrderComparable, reverseComparator| Modifier and Type | Method and Description |
|---|---|
int |
compareCollectionMembers(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2,
java.nio.ByteBuffer collectionName)
An alternative comparison function used by CollectionsType in conjunction with CompositeType.
|
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
|
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.
|
static ColumnToCollectionType |
getInstance(java.util.Map<java.nio.ByteBuffer,CollectionType> defined) |
static ColumnToCollectionType |
getInstance(TypeParser parser) |
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)
|
boolean |
isCompatibleWith(AbstractType<?> previous)
Returns true if this comparator is compatible with the provided
previous comparator, that is if previous can safely be replaced by this.
|
java.lang.String |
toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
Converts the specified value into its JSON representation.
|
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any
AbstractType, this == TypeParser.parse(toString()).
|
void |
validate(java.nio.ByteBuffer bytes) |
void |
validateCollectionMember(java.nio.ByteBuffer bytes,
java.nio.ByteBuffer collectionName)
An alternative validation function used by CollectionsType in conjunction with CompositeType.
|
asCQL3Type, asCQLTypeStringList, checkComparable, compare, compareForCQL, componentsCount, compose, decompose, equals, freeze, freezeNestedMulticellTypes, getComponents, getString, isCollection, isCounter, isEmptyValueMeaningless, isFreezable, isFrozenCollection, isMultiCell, isReversed, isTuple, isUDT, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, readValue, readValue, referencesDuration, referencesUserType, skipValue, testAssignment, toString, validateCellValue, valueLengthIfFixed, writeValue, writtenLengthpublic final java.util.Map<java.nio.ByteBuffer,CollectionType> defined
public static ColumnToCollectionType getInstance(TypeParser parser) throws SyntaxException, ConfigurationException
public static ColumnToCollectionType getInstance(java.util.Map<java.nio.ByteBuffer,CollectionType> defined)
public int compareCustom(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
AbstractTypecompareCustom in class AbstractType<java.nio.ByteBuffer>public int compareCollectionMembers(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2,
java.nio.ByteBuffer collectionName)
AbstractTypecompareCollectionMembers in class AbstractType<java.nio.ByteBuffer>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 Term fromJSONObject(java.lang.Object parsed) throws MarshalException
AbstractTypefromJSONObject in class AbstractType<java.nio.ByteBuffer>parsed - the result of parsing a json stringMarshalExceptionpublic java.lang.String toJSONString(java.nio.ByteBuffer buffer,
ProtocolVersion protocolVersion)
AbstractTypeThe 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)
validate in class AbstractType<java.nio.ByteBuffer>public TypeSerializer<java.nio.ByteBuffer> getSerializer()
getSerializer in class AbstractType<java.nio.ByteBuffer>public void validateCollectionMember(java.nio.ByteBuffer bytes,
java.nio.ByteBuffer collectionName)
throws MarshalException
AbstractTypevalidateCollectionMember in class AbstractType<java.nio.ByteBuffer>MarshalExceptionpublic boolean isCompatibleWith(AbstractType<?> previous)
AbstractTypeisCompatibleWith in class AbstractType<java.nio.ByteBuffer>public java.lang.String toString()
AbstractTypetoString in class AbstractType<java.nio.ByteBuffer>Copyright © 2018 The Apache Software Foundation