Package org.apache.cassandra.serializers
Class TimestampSerializer
java.lang.Object
org.apache.cassandra.serializers.TypeSerializer<Date>
org.apache.cassandra.serializers.TimestampSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longdateStringToTimestamp(String source) <V> Datedeserialize(V value, ValueAccessor<V> accessor) static FormatgetType()booleanprotected StringtoCQLLiteralNonNull(ByteBuffer buffer) toStringUTC(Date value) <V> voidvalidate(V value, ValueAccessor<V> accessor) Methods inherited from class org.apache.cassandra.serializers.TypeSerializer
deserialize, isNull, isNull, toCQLLiteral, toCQLLiteralNoQuote, validate
-
Field Details
-
instance
-
-
Constructor Details
-
TimestampSerializer
public TimestampSerializer()
-
-
Method Details
-
deserialize
- Specified by:
deserializein classTypeSerializer<Date>
-
serialize
- Specified by:
serializein classTypeSerializer<Date>
-
dateStringToTimestamp
- Throws:
MarshalException
-
getJsonDateFormatter
-
validate
- Specified by:
validatein classTypeSerializer<Date>- Throws:
MarshalException
-
toString
- Specified by:
toStringin classTypeSerializer<Date>
-
toStringUTC
-
getType
- Specified by:
getTypein classTypeSerializer<Date>
-
shouldQuoteCQLLiterals
public boolean shouldQuoteCQLLiterals()- Overrides:
shouldQuoteCQLLiteralsin classTypeSerializer<Date>
-
toCQLLiteralNonNull
- Overrides:
toCQLLiteralNonNullin classTypeSerializer<Date>
-