类 DoubleSchema

java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<Double>
org.apache.pulsar.client.impl.schema.DoubleSchema
所有已实现的接口:
Cloneable, Schema<Double>

public class DoubleSchema extends AbstractSchema<Double>
A schema for `Double`.
  • 构造器详细资料

    • DoubleSchema

      public DoubleSchema()
  • 方法详细资料

    • of

      public static DoubleSchema of()
    • validate

      public void validate(byte[] message)
    • validate

      public void validate(io.netty.buffer.ByteBuf message)
    • encode

      public byte[] encode(Double message)
    • decode

      public Double decode(byte[] bytes)
    • decode

      public Double decode(io.netty.buffer.ByteBuf byteBuf)
      从类复制的说明: 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.

      指定者:
      decode 在类中 AbstractSchema<Double>
      参数:
      byteBuf - the byte buffer to decode
      返回:
      the deserialized object
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()