类 ByteBufSchema
java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<io.netty.buffer.ByteBuf>
org.apache.pulsar.client.impl.schema.ByteBufSchema
A variant `Bytes` schema that takes
ByteBuf.-
字段概要
从接口继承的字段 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 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明io.netty.buffer.ByteBufdecode(byte[] bytes) io.netty.buffer.ByteBufdecode(io.netty.buffer.ByteBuf byteBuf) Decode a byteBuf into an object using the schema definition and deserializer implementationbyte[]encode(io.netty.buffer.ByteBuf message) static ByteBufSchemaof()从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decode从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.Schema
configureSchemaInfo, decode, decode, decode, getNativeSchema, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validate
-
构造器详细资料
-
ByteBufSchema
public ByteBufSchema()
-
-
方法详细资料
-
of
-
encode
public byte[] encode(io.netty.buffer.ByteBuf message) -
decode
public io.netty.buffer.ByteBuf decode(byte[] bytes) -
decode
public io.netty.buffer.ByteBuf decode(io.netty.buffer.ByteBuf byteBuf) 从类复制的说明:AbstractSchemaDecode a byteBuf into an object using the schema definition and deserializer implementationDo not modify reader/writer index of ByteBuf so, it can be reused to access correct data.
- 指定者:
decode在类中AbstractSchema<io.netty.buffer.ByteBuf>- 参数:
byteBuf- the byte buffer to decode- 返回:
- the deserialized object
-
getSchemaInfo
-