类的使用
org.apache.pulsar.common.schema.KeyValue
使用KeyValue的程序包
程序包
说明
Pulsar Client API.
Helpers which provide useful functionality for the implementation of Pulsar Client API.
This package contains data structures for schema definitions used in the Pulsar Client API.
-
org.apache.pulsar.client.api中KeyValue的使用
返回变量类型为KeyValue的类型的org.apache.pulsar.client.api中的方法修饰符和类型方法说明Key Value Schema whose underneath key and value schemas are JSONSchema.Schema.KeyValue
(Class<K> key, Class<V> value, SchemaType type) Key Value Schema using passed in schema type, support JSON and AVRO currently.Key Value Schema using passed in key and value schemas withKeyValueEncodingType.INLINE
encoding type.Schema.KeyValue
(Schema<K> key, Schema<V> value, KeyValueEncodingType keyValueEncodingType) Key Value Schema using passed in key, value and encoding type schemas.Schema.KV_BYTES()
Schema that can be used to encode/decode KeyValue. -
org.apache.pulsar.client.internal中KeyValue的使用
修饰符和类型方法说明PulsarClientImplementationBinding.decodeKeyValueSchemaInfo
(SchemaInfo schemaInfo) Decode the key/value schema info to get key schema info and value schema info.返回变量类型为KeyValue的类型的org.apache.pulsar.client.internal中的方法修饰符和类型方法说明PulsarClientImplementationBinding.newKeyValueBytesSchema()
PulsarClientImplementationBinding.newKeyValueSchema
(Class<K> key, Class<V> value, SchemaType type) PulsarClientImplementationBinding.newKeyValueSchema
(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType) 修饰符和类型方法说明PulsarClientImplementationBinding.convertKeyValueSchemaInfoDataToString
(KeyValue<SchemaInfo, SchemaInfo> kvSchemaInfo) Convert the key/value schema data.PulsarClientImplementationBinding.jsonifyKeyValueSchemaInfo
(KeyValue<SchemaInfo, SchemaInfo> kvSchemaInfo) Jsonify the key/value schema info. -
org.apache.pulsar.common.schema中KeyValue的使用