|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.marshal.AbstractType
public abstract class AbstractType
Specifies a Comparator for a specific type of byte[]. Note that empty byte[] are used to represent "start at the beginning" or "stop at the end" arguments to get_slice, so the Comparator should always handle those values even if they normally do not represent a valid byte[] for the type being compared.
Constructor Summary | |
---|---|
AbstractType()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getColumnsString(java.util.Collection<IColumn> columns)
convenience method |
java.util.Comparator<byte[]> |
getReverseComparator()
|
abstract java.lang.String |
getString(byte[] bytes)
get a string representation of the bytes suitable for log messages |
java.lang.String |
getString(java.util.Collection<byte[]> names)
convenience method |
void |
validate(byte[] bytes)
validate that the byte array is a valid sequence for the type we are supposed to be comparing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
compare |
Constructor Detail |
---|
public AbstractType()
Method Detail |
---|
public abstract java.lang.String getString(byte[] bytes)
public void validate(byte[] bytes)
public java.util.Comparator<byte[]> getReverseComparator()
public java.lang.String getString(java.util.Collection<byte[]> names)
public java.lang.String getColumnsString(java.util.Collection<IColumn> columns)
public final boolean equals(java.lang.Object obj)
equals
in interface java.util.Comparator<byte[]>
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |