Uses of Class
org.apache.pulsar.common.schema.KeyValue
-
Packages that use KeyValue Package Description org.apache.pulsar.client.api Pulsar Client API.org.apache.pulsar.client.internal Helpers which provide useful functionality for the implementation of Pulsar Client API.org.apache.pulsar.common.schema This package contains data structures for schema definitions used in the Pulsar Client API. -
-
Uses of KeyValue in org.apache.pulsar.client.api
Methods in org.apache.pulsar.client.api that return types with arguments of type KeyValue Modifier and Type Method Description static <K,V>
Schema<KeyValue<K,V>>Schema. KeyValue(java.lang.Class<K> key, java.lang.Class<V> value)
Key Value Schema whose underneath key and value schemas are JSONSchema.static <K,V>
Schema<KeyValue<K,V>>Schema. KeyValue(java.lang.Class<K> key, java.lang.Class<V> value, SchemaType type)
Key Value Schema using passed in schema type, support JSON and AVRO currently.static <K,V>
Schema<KeyValue<K,V>>Schema. KeyValue(Schema<K> key, Schema<V> value)
Key Value Schema using passed in key and value schemas.static <K,V>
Schema<KeyValue<K,V>>Schema. KeyValue(Schema<K> key, Schema<V> value, KeyValueEncodingType keyValueEncodingType)
Key Value Schema using passed in key, value and encoding type schemas.static Schema<KeyValue<byte[],byte[]>>
Schema. KV_BYTES()
Schema that can be used to encode/decode KeyValue. -
Uses of KeyValue in org.apache.pulsar.client.internal
Methods in org.apache.pulsar.client.internal that return KeyValue Modifier and Type Method Description KeyValue<SchemaInfo,SchemaInfo>
PulsarClientImplementationBinding. decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
Decode the key/value schema info to get key schema info and value schema info.Methods in org.apache.pulsar.client.internal that return types with arguments of type KeyValue Modifier and Type Method Description Schema<KeyValue<byte[],byte[]>>
PulsarClientImplementationBinding. newKeyValueBytesSchema()
<K,V>
Schema<KeyValue<K,V>>PulsarClientImplementationBinding. newKeyValueSchema(java.lang.Class<K> key, java.lang.Class<V> value, SchemaType type)
<K,V>
Schema<KeyValue<K,V>>PulsarClientImplementationBinding. newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema)
<K,V>
Schema<KeyValue<K,V>>PulsarClientImplementationBinding. newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)
Methods in org.apache.pulsar.client.internal with parameters of type KeyValue Modifier and Type Method Description java.lang.String
PulsarClientImplementationBinding. convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Convert the key/value schema data.java.lang.String
PulsarClientImplementationBinding. jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Jsonify the key/value schema info. -
Uses of KeyValue in org.apache.pulsar.common.schema
Methods in org.apache.pulsar.common.schema that return KeyValue Modifier and Type Method Description static <K,V>
KeyValue<K,V>KeyValue. decode(byte[] data, KeyValue.KeyValueDecoder<K,V> decoder)
Decode the value into a key/value pair.KeyValue<K,V>
KeyValue.KeyValueDecoder. decode(byte[] keyData, byte[] valueData)
Decode key and value bytes into aKeyValue
pair.
-