类 AbstractStructSchema<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<T>
org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
minimal abstract StructSchema.
-
字段概要
字段修饰符和类型字段说明protected static final org.slf4j.Loggerprotected SchemaReader<T>protected final SchemaInfoprotected SchemaInfoProviderprotected SchemaWriter<T>从接口继承的字段 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 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明atSchemaVersion(byte[] schemaVersion) Return an instance of this schema at the given version.decode(byte[] bytes) decode(byte[] bytes, byte[] schemaVersion) decode(io.netty.buffer.ByteBuf byteBuf) Decode a byteBuf into an object using the schema definition and deserializer implementationdecode(io.netty.buffer.ByteBuf byteBuf, byte[] schemaVersion) Decode a byteBuf into an object using a given version.decode(ByteBuffer buffer) decode(ByteBuffer buffer, byte[] schemaVersion) byte[]protected SchemaReader<T>protected voidsetReader(SchemaReader<T> reader) voidsetSchemaInfoProvider(SchemaInfoProvider schemaInfoProvider) protected voidsetWriter(SchemaWriter<T> writer) 从类继承的方法 org.apache.pulsar.client.impl.schema.AbstractSchema
clone从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.Schema
configureSchemaInfo, getNativeSchema, requireFetchingSchemaInfo, supportSchemaVersioning, validate
-
字段详细资料
-
LOG
protected static final org.slf4j.Logger LOG -
schemaInfo
-
reader
-
writer
-
schemaInfoProvider
-
-
构造器详细资料
-
AbstractStructSchema
-
-
方法详细资料
-
encode
-
decode
-
decode
-
decode
-
decode
-
decode
从类复制的说明: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<T>- 参数:
byteBuf- the byte buffer to decode- 返回:
- the deserialized object
-
decode
从类复制的说明:AbstractSchemaDecode a byteBuf into an object using a given version.- 覆盖:
decode在类中AbstractSchema<T>- 参数:
byteBuf- the byte array to decodeschemaVersion- the schema version to decode the object. null indicates using latest version.- 返回:
- the deserialized object
-
getSchemaInfo
-
setSchemaInfoProvider
-
atSchemaVersion
从类复制的说明:AbstractSchemaReturn an instance of this schema at the given version.- 覆盖:
atSchemaVersion在类中AbstractSchema<T>- 参数:
schemaVersion- the version- 返回:
- the schema at that specific version
- 抛出:
SchemaSerializationException- in case of unknown schema version
-
setWriter
-
setReader
-
getReader
-