public class CounterColumnType extends AbstractType<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
static CounterColumnType |
instance |
reverseComparator
Modifier and Type | Method and Description |
---|---|
CQL3Type |
asCQL3Type() |
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
java.lang.Long |
compose(java.nio.ByteBuffer bytes) |
java.nio.ByteBuffer |
decompose(java.lang.Long value) |
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
TypeSerializer<java.lang.Long> |
getSerializer() |
java.lang.String |
getString(java.nio.ByteBuffer bytes)
get a string representation of the bytes suitable for log messages
|
boolean |
isByteOrderComparable() |
boolean |
isCounter() |
compareCollectionMembers, componentsCount, fromStringCQL2, getComponents, getString, isCollection, isCompatibleWith, isValueCompatibleWith, isValueCompatibleWithInternal, parseDefaultParameters, toString, validate, validateCellValue, validateCollectionMember
public static final CounterColumnType instance
public boolean isCounter()
isCounter
in class AbstractType<java.lang.Long>
public boolean isByteOrderComparable()
isByteOrderComparable
in class AbstractType<java.lang.Long>
public java.lang.Long compose(java.nio.ByteBuffer bytes)
compose
in class AbstractType<java.lang.Long>
public java.nio.ByteBuffer decompose(java.lang.Long value)
decompose
in class AbstractType<java.lang.Long>
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<java.lang.Long>
public java.nio.ByteBuffer fromString(java.lang.String source)
AbstractType
fromString
in class AbstractType<java.lang.Long>
public CQL3Type asCQL3Type()
asCQL3Type
in class AbstractType<java.lang.Long>
public TypeSerializer<java.lang.Long> getSerializer()
getSerializer
in class AbstractType<java.lang.Long>
Copyright © 2014 The Apache Software Foundation