Class LocalDateSchema

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

public class LocalDateSchema extends AbstractSchema<LocalDate>
A schema for `java.time.LocalDate`.
  • Constructor Details

    • LocalDateSchema

      public LocalDateSchema()
  • Method Details

    • of

      public static LocalDateSchema of()
    • encode

      public byte[] encode(LocalDate message)
    • decode

      public LocalDate decode(byte[] bytes)
    • decode

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

      public SchemaInfo getSchemaInfo()