public class BytesSchema extends Object implements org.apache.pulsar.client.api.Schema<byte[]>, Serializable
| Constructor and Description |
|---|
BytesSchema(PulsarSchema<?> pulsarSchema) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.client.api.Schema<byte[]> |
clone() |
byte[] |
decode(byte[] bytes) |
byte[] |
decode(byte[] bytes,
byte[] schemaVersion) |
byte[] |
decode(ByteBuffer data,
byte[] schemaVersion) |
byte[] |
encode(byte[] message) |
org.apache.pulsar.common.schema.SchemaInfo |
getSchemaInfo() |
boolean |
supportSchemaVersioning() |
void |
validate(byte[] message) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitAUTO_CONSUME, AUTO_PRODUCE_BYTES, AUTO_PRODUCE_BYTES, AUTO, AVRO, AVRO, configureSchemaInfo, generic, getNativeSchema, getSchema, JSON, JSON, KeyValue, KeyValue, KeyValue, KeyValue, KV_BYTES, NATIVE_AVRO, PROTOBUF_NATIVE, PROTOBUF_NATIVE, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, setSchemaInfoProviderpublic BytesSchema(PulsarSchema<?> pulsarSchema)
public void validate(byte[] message)
validate in interface org.apache.pulsar.client.api.Schema<byte[]>public byte[] encode(byte[] message)
encode in interface org.apache.pulsar.client.api.Schema<byte[]>public boolean supportSchemaVersioning()
supportSchemaVersioning in interface org.apache.pulsar.client.api.Schema<byte[]>public byte[] decode(byte[] bytes)
decode in interface org.apache.pulsar.client.api.Schema<byte[]>public byte[] decode(byte[] bytes,
byte[] schemaVersion)
decode in interface org.apache.pulsar.client.api.Schema<byte[]>public byte[] decode(ByteBuffer data, byte[] schemaVersion)
decode in interface org.apache.pulsar.client.api.Schema<byte[]>public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
getSchemaInfo in interface org.apache.pulsar.client.api.Schema<byte[]>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.