Package org.apache.cassandra.serializers
Class TimeSerializer
java.lang.Object
org.apache.cassandra.serializers.TypeSerializer<Long>
org.apache.cassandra.serializers.TimeSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Longdeserialize(V value, ValueAccessor<V> accessor) getType()booleanstatic LongtimeStringToLong(String source) <V> voidvalidate(V value, ValueAccessor<V> accessor) Methods inherited from class org.apache.cassandra.serializers.TypeSerializer
deserialize, isNull, isNull, toCQLLiteral, toCQLLiteralNonNull, toCQLLiteralNoQuote, validate
-
Field Details
-
timePattern
-
instance
-
-
Constructor Details
-
TimeSerializer
public TimeSerializer()
-
-
Method Details
-
deserialize
- Specified by:
deserializein classTypeSerializer<Long>
-
serialize
- Specified by:
serializein classTypeSerializer<Long>
-
timeStringToLong
- Throws:
MarshalException
-
validate
- Specified by:
validatein classTypeSerializer<Long>- Throws:
MarshalException
-
shouldQuoteCQLLiterals
public boolean shouldQuoteCQLLiterals()- Overrides:
shouldQuoteCQLLiteralsin classTypeSerializer<Long>
-
toString
- Specified by:
toStringin classTypeSerializer<Long>
-
getType
- Specified by:
getTypein classTypeSerializer<Long>
-