Class TimeSchema

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

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

    • TimeSchema

      public TimeSchema()
  • Method Details

    • of

      public static TimeSchema of()
    • encode

      public byte[] encode(Time message)
    • decode

      public Time decode(byte[] bytes)
    • decode

      public Time 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<Time>
      Parameters:
      byteBuf - the byte buffer to decode
      Returns:
      the deserialized object
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()