Class TimestampSerializer


  • public class TimestampSerializer
    extends TypeSerializer<java.util.Date>
    • Constructor Detail

      • TimestampSerializer

        public TimestampSerializer()
    • Method Detail

      • serialize

        public java.nio.ByteBuffer serialize​(java.util.Date value)
        Specified by:
        serialize in class TypeSerializer<java.util.Date>
      • getJsonDateFormatter

        public static java.text.SimpleDateFormat getJsonDateFormatter()
      • toString

        public java.lang.String toString​(java.util.Date value)
        Specified by:
        toString in class TypeSerializer<java.util.Date>
      • toStringUTC

        public java.lang.String toStringUTC​(java.util.Date value)
      • getType

        public java.lang.Class<java.util.Date> getType()
        Specified by:
        getType in class TypeSerializer<java.util.Date>
      • toCQLLiteral

        public java.lang.String toCQLLiteral​(java.nio.ByteBuffer buffer)
        Builds CQL literal for a timestamp using time zone UTC and fixed date format.
        Overrides:
        toCQLLiteral in class TypeSerializer<java.util.Date>
        See Also:
        FORMATTER_UTC