Class AutoProduceBytesSchema<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.AutoProduceBytesSchema<T>
Auto detect schema.
-
Field Summary
Fields inherited from interface 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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.Schema
configureSchemaInfo, decode, decode, decode, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioning
-
Constructor Details
-
AutoProduceBytesSchema
public AutoProduceBytesSchema() -
AutoProduceBytesSchema
-
-
Method Details
-
setSchema
-
schemaInitialized
public boolean schemaInitialized() -
validate
public void validate(byte[] message) -
encode
public byte[] encode(byte[] message) -
decode
public byte[] decode(byte[] bytes, byte[] schemaVersion) -
getSchemaInfo
- Specified by:
getSchemaInfo
in interfaceSchema<T>
-
getNativeSchema
- Specified by:
getNativeSchema
in interfaceSchema<T>
-
clone
-