public class LongType extends AbstractType<java.lang.Long>
Modifier and Type | Field and Description |
---|---|
static LongType |
instance |
columnComparator, columnReverseComparator, indexComparator, indexReverseComparator, onDiskAtomComparator, reverseComparator
Modifier and Type | Method and Description |
---|---|
CQL3Type |
asCQL3Type() |
int |
compare(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
static int |
compareLongs(java.nio.ByteBuffer o1,
java.nio.ByteBuffer o2) |
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
TypeSerializer<java.lang.Long> |
getSerializer() |
boolean |
isValueCompatibleWithInternal(AbstractType<?> otherType)
Needed to handle ReversedType in value-compatibility checks.
|
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getString, getString, intersects, intersects, isCollection, isCommutative, isCompatibleWith, isValueCompatibleWith, parseDefaultParameters, toString, validate, validateCollectionMember
public static final LongType instance
public int compare(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
public static int compareLongs(java.nio.ByteBuffer o1, java.nio.ByteBuffer o2)
public java.nio.ByteBuffer fromString(java.lang.String source) throws MarshalException
AbstractType
fromString
in class AbstractType<java.lang.Long>
MarshalException
public boolean isValueCompatibleWithInternal(AbstractType<?> otherType)
AbstractType
isValueCompatibleWithInternal
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