类 AbstractMultiVersionReader<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.reader.AbstractMultiVersionReader<T>
- 所有已实现的接口:
SchemaReader<T>
The multi version reader abstract class, implement it will handle the multi version schema.
-
字段概要
字段修饰符和类型字段说明protected static final org.slf4j.Loggerprotected final SchemaReader<T>protected SchemaInfoProvider -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected SchemaInfogetSchemaInfoByVersion(byte[] schemaVersion) TODO: think about how to make this async.getSchemaReader(byte[] schemaVersion) protected abstract SchemaReader<T>loadReader(BytesSchemaVersion schemaVersion) Load the schema reader for reading messages encoded by the given schema version.read(byte[] bytes, byte[] schemaVersion) read(byte[] bytes, int offset, int length) read(InputStream inputStream) read(InputStream inputStream, byte[] schemaVersion) voidsetSchemaInfoProvider(SchemaInfoProvider schemaInfoProvider) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.schema.SchemaReader
getNativeSchema, read
-
字段详细资料
-
providerSchemaReader
-
schemaInfoProvider
-
LOG
protected static final org.slf4j.Logger LOG
-
-
构造器详细资料
-
AbstractMultiVersionReader
-
-
方法详细资料
-
read
- 指定者:
read在接口中SchemaReader<T>
-
read
- 指定者:
read在接口中SchemaReader<T>
-
read
- 指定者:
read在接口中SchemaReader<T>
-
getSchemaReader
-
read
- 指定者:
read在接口中SchemaReader<T>
-
setSchemaInfoProvider
- 指定者:
setSchemaInfoProvider在接口中SchemaReader<T>
-
loadReader
Load the schema reader for reading messages encoded by the given schema version.- 参数:
schemaVersion- the provided schema version- 返回:
- the schema reader for decoding messages encoded by the provided schema version.
-
getSchemaInfoByVersion
TODO: think about how to make this async.
-