类 NativeAvroBytesSchema<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.NativeAvroBytesSchema<T>
Schema from a native Apache Avro schema.
This class is supposed to be used on the producer side for working with existing data serialized in Avro,
possibly stored in another system like Kafka.
For this reason, it will not perform bytes validation against the schema in encoding and decoding,
which are just identify functions.
This class also makes it possible for users to bring in their own Avro serialization method.
-
字段概要
从接口继承的字段 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.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.apache.pulsar.client.api.Schema
configureSchemaInfo, decode, decode, decode, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning, validate
-
构造器详细资料
-
NativeAvroBytesSchema
public NativeAvroBytesSchema(org.apache.avro.Schema schema) -
NativeAvroBytesSchema
-
-
方法详细资料
-
encode
public byte[] encode(byte[] message) -
decode
public byte[] decode(byte[] bytes, byte[] schemaVersion) -
getSchemaInfo
- 指定者:
getSchemaInfo在接口中Schema<T>
-
getNativeSchema
- 指定者:
getNativeSchema在接口中Schema<T>
-
clone
-