类 BooleanSchema

  • 所有已实现的接口:
    java.lang.Cloneable, org.apache.pulsar.client.api.Schema<java.lang.Boolean>

    public class BooleanSchema
    extends AbstractSchema<java.lang.Boolean>
    A schema for `Boolean`.
    • 字段概要

      • 从接口继承的字段 org.apache.pulsar.client.api.Schema

        BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.Boolean decode​(byte[] bytes)  
      java.lang.Boolean decode​(io.netty.buffer.ByteBuf byteBuf)
      Decode a byteBuf into an object using the schema definition and deserializer implementation
      byte[] encode​(java.lang.Boolean message)  
      org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()  
      static BooleanSchema of()  
      void validate​(byte[] message)  
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.apache.pulsar.client.api.Schema

        configureSchemaInfo, decode, decode, getNativeSchema, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning
    • 构造器详细资料

      • BooleanSchema

        public BooleanSchema()
    • 方法详细资料

      • validate

        public void validate​(byte[] message)
      • encode

        public byte[] encode​(java.lang.Boolean message)
      • decode

        public java.lang.Boolean decode​(byte[] bytes)
      • decode

        public java.lang.Boolean 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<java.lang.Boolean>
        参数:
        byteBuf - the byte buffer to decode
        返回:
        the deserialized object
      • getSchemaInfo

        public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()