Class TimestampSchema

java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<Timestamp>
org.apache.pulsar.client.impl.schema.TimestampSchema
All Implemented Interfaces:
Cloneable, Schema<Timestamp>

public class TimestampSchema extends AbstractSchema<Timestamp>
A schema for `java.sql.Timestamp`.
  • Constructor Details

    • TimestampSchema

      public TimestampSchema()
  • Method Details

    • of

      public static TimestampSchema of()
    • encode

      public byte[] encode(Timestamp message)
    • decode

      public Timestamp decode(byte[] bytes)
    • decode

      public Timestamp decode(io.netty.buffer.ByteBuf byteBuf)
      Description copied from class: AbstractSchema
      Decode a byteBuf into an object using the schema definition and deserializer implementation

      Do not modify reader/writer index of ByteBuf so, it can be reused to access correct data.

      Specified by:
      decode in class AbstractSchema<Timestamp>
      Parameters:
      byteBuf - the byte buffer to decode
      Returns:
      the deserialized object
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()