|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.db.marshal.AbstractType<T>
org.apache.cassandra.db.marshal.ReversedType<T>
public class ReversedType<T>
| Field Summary |
|---|
| Fields inherited from class org.apache.cassandra.db.marshal.AbstractType |
|---|
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, reverseComparator |
| Method Summary | ||
|---|---|---|
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
|
|
T |
compose(java.nio.ByteBuffer bytes)
|
|
java.nio.ByteBuffer |
decompose(T value)
|
|
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string. |
|
static
|
getInstance(AbstractType<T> baseType)
|
|
static
|
getInstance(TypeParser parser)
|
|
int |
getJdbcType()
|
|
int |
getPrecision(T obj)
|
|
int |
getScale(T obj)
|
|
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable for log messages |
|
java.lang.Class<T> |
getType()
returns the class this AbstractType represents. |
|
boolean |
isCaseSensitive()
|
|
boolean |
isCurrency()
|
|
boolean |
isSigned()
|
|
boolean |
needsQuotes()
|
|
java.lang.String |
toString()
This must be overriden by subclasses if necessary so that for any AbstractType, this == TypeParser.parse(toString()). |
|
java.lang.String |
toString(T t)
get a string representation of a particular type. |
|
void |
validate(java.nio.ByteBuffer bytes)
|
|
| Methods inherited from class org.apache.cassandra.db.marshal.AbstractType |
|---|
getColumnsString, getReverseComparator, getString, 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 |
| Method Detail |
|---|
public static <T> ReversedType<T> getInstance(TypeParser parser)
throws ConfigurationException
ConfigurationExceptionpublic static <T> ReversedType<T> getInstance(AbstractType<T> baseType)
public int compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2)
public java.lang.String getString(java.nio.ByteBuffer bytes)
AbstractType
getString in class AbstractType<T>public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractType
fromString in class AbstractType<T>
public void validate(java.nio.ByteBuffer bytes)
throws MarshalException
validate in class AbstractType<T>MarshalExceptionpublic T compose(java.nio.ByteBuffer bytes)
compose in class AbstractType<T>public java.nio.ByteBuffer decompose(T value)
decompose in class AbstractType<T>public java.lang.Class<T> getType()
AbstractType
getType in class AbstractType<T>public java.lang.String toString(T t)
AbstractType
toString in class AbstractType<T>public boolean isSigned()
isSigned in class AbstractType<T>public boolean isCaseSensitive()
isCaseSensitive in class AbstractType<T>public boolean isCurrency()
isCurrency in class AbstractType<T>public int getPrecision(T obj)
getPrecision in class AbstractType<T>public int getScale(T obj)
getScale in class AbstractType<T>public int getJdbcType()
getJdbcType in class AbstractType<T>public boolean needsQuotes()
needsQuotes in class AbstractType<T>public java.lang.String toString()
AbstractType
toString in class AbstractType<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||