T - public class FlinkSchema<T> extends Object implements org.apache.pulsar.client.api.Schema<T>, Serializable
| Constructor and Description |
|---|
FlinkSchema(org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
org.apache.flink.api.common.serialization.SerializationSchema<T> serializer,
org.apache.flink.api.common.serialization.DeserializationSchema<T> deserializer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.client.api.Schema<T> |
clone() |
T |
decode(byte[] bytes) |
byte[] |
encode(T t) |
org.apache.pulsar.common.schema.SchemaInfo |
getSchemaInfo() |
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, decode, decode, generic, getNativeSchema, getSchema, JSON, JSON, KeyValue, KeyValue, KeyValue, KeyValue, KV_BYTES, PROTOBUF_NATIVE, PROTOBUF_NATIVE, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, setSchemaInfoProvider, supportSchemaVersioningpublic void validate(byte[] message)
validate in interface org.apache.pulsar.client.api.Schema<T>public byte[] encode(T t)
encode in interface org.apache.pulsar.client.api.Schema<T>public T decode(byte[] bytes)
decode in interface org.apache.pulsar.client.api.Schema<T>public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
getSchemaInfo in interface org.apache.pulsar.client.api.Schema<T>Copyright © 2019–2022 The Apache Software Foundation. All rights reserved.