|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.marshal.AbstractType<java.nio.ByteBuffer>
org.apache.cassandra.db.marshal.ColumnToCollectionType
public class ColumnToCollectionType
Field Summary | |
---|---|
java.util.Map<java.nio.ByteBuffer,CollectionType> |
defined
|
Fields inherited from class org.apache.cassandra.db.marshal.AbstractType |
---|
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator |
Method Summary | |
---|---|
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
|
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. |
java.nio.ByteBuffer |
compose(java.nio.ByteBuffer bytes)
|
java.nio.ByteBuffer |
decompose(java.nio.ByteBuffer value)
|
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)
|
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable 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 |
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. |
Methods inherited from class org.apache.cassandra.db.marshal.AbstractType |
---|
asCQL3Type, fromStringCQL2, getColumnsString, getReverseComparator, getString, isCollection, isCommutative, parseDefaultParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public final java.util.Map<java.nio.ByteBuffer,CollectionType> defined
Method Detail |
---|
public static ColumnToCollectionType getInstance(TypeParser parser) throws SyntaxException, ConfigurationException
SyntaxException
ConfigurationException
public static ColumnToCollectionType getInstance(java.util.Map<java.nio.ByteBuffer,CollectionType> defined)
public int compare(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
public int compareCollectionMembers(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2, java.nio.ByteBuffer collectionName)
AbstractType
compareCollectionMembers
in class AbstractType<java.nio.ByteBuffer>
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>
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)
validate
in class AbstractType<java.nio.ByteBuffer>
public void validateCollectionMember(java.nio.ByteBuffer bytes, java.nio.ByteBuffer collectionName) throws MarshalException
AbstractType
validateCollectionMember
in class AbstractType<java.nio.ByteBuffer>
MarshalException
public boolean isCompatibleWith(AbstractType<?> previous)
AbstractType
isCompatibleWith
in class AbstractType<java.nio.ByteBuffer>
public java.lang.String toString()
AbstractType
toString
in class AbstractType<java.nio.ByteBuffer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |