public class TimestampType extends AbstractType<java.util.Date>
Modifier and Type | Field and Description |
---|---|
static TimestampType |
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 long |
dateStringToTimestamp(java.lang.String source) |
java.nio.ByteBuffer |
fromString(java.lang.String source)
get a byte representation of the given string.
|
TypeSerializer<java.util.Date> |
getSerializer() |
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.
|
compareCollectionMembers, componentsCount, compose, decompose, fromStringCQL2, getColumnsString, getComponents, getReverseComparator, getString, getString, intersects, intersects, isCollection, isCommutative, isValueCompatibleWith, parseDefaultParameters, toString, validate, validateCollectionMember
public static final TimestampType instance
public int compare(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.util.Date>
MarshalException
public static long dateStringToTimestamp(java.lang.String source) throws MarshalException
MarshalException
public boolean isCompatibleWith(AbstractType<?> previous)
AbstractType
isCompatibleWith
in class AbstractType<java.util.Date>
public CQL3Type asCQL3Type()
asCQL3Type
in class AbstractType<java.util.Date>
public TypeSerializer<java.util.Date> getSerializer()
getSerializer
in class AbstractType<java.util.Date>
Copyright © 2014 The Apache Software Foundation