接口 SchemaReader<T>
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default java.util.Optional<java.lang.Object>getNativeSchema()Returns the underling Schema if possibledefault Tread(byte[] bytes)Serialize bytes convert pojo.default Tread(byte[] bytes, byte[] schemaVersion)Serialize bytes convert pojo.Tread(byte[] bytes, int offset, int length)serialize bytes convert pojo.Tread(java.io.InputStream inputStream)serialize bytes convert pojo.default Tread(java.io.InputStream inputStream, byte[] schemaVersion)serialize bytes convert pojo.default voidsetSchemaInfoProvider(SchemaInfoProvider schemaInfoProvider)Set schema info provider, this method support multi version reader.
-
-
-
方法详细资料
-
read
default T read(byte[] bytes)
Serialize bytes convert pojo.- 参数:
bytes- the data- 返回:
- the serialized object
-
read
T read(byte[] bytes, int offset, int length)
serialize bytes convert pojo.- 参数:
bytes- the dataoffset- the byte[] initial positionlength- the byte[] read length- 返回:
- the serialized object
-
read
T read(java.io.InputStream inputStream)
serialize bytes convert pojo.- 参数:
inputStream- the stream of message- 返回:
- the serialized object
-
read
default T read(byte[] bytes, byte[] schemaVersion)
Serialize bytes convert pojo.- 参数:
bytes- the dataschemaVersion- the schema version of message- 返回:
- the serialized object
-
read
default T read(java.io.InputStream inputStream, byte[] schemaVersion)
serialize bytes convert pojo.- 参数:
inputStream- the stream of messageschemaVersion- the schema version of message- 返回:
- the serialized object
-
setSchemaInfoProvider
default void setSchemaInfoProvider(SchemaInfoProvider schemaInfoProvider)
Set schema info provider, this method support multi version reader.- 参数:
schemaInfoProvider- the stream of message
-
getNativeSchema
default java.util.Optional<java.lang.Object> getNativeSchema()
Returns the underling Schema if possible- 返回:
- the schema, or an empty Optional if it is not possible to access it
-
-