类的使用
org.apache.pulsar.common.schema.KeyValue
-
使用KeyValue的程序包 程序包 说明 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. -
-
org.apache.pulsar.client.api中KeyValue的使用
返回变量类型为KeyValue的类型的org.apache.pulsar.client.api中的方法 修饰符和类型 方法 说明 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. -
org.apache.pulsar.client.internal中KeyValue的使用
返回KeyValue的org.apache.pulsar.client.internal中的方法 修饰符和类型 方法 说明 static KeyValue<SchemaInfo,SchemaInfo>DefaultImplementation. decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)Decode the key/value schema info to get key schema info and value schema info.返回变量类型为KeyValue的类型的org.apache.pulsar.client.internal中的方法 修饰符和类型 方法 说明 static Schema<KeyValue<byte[],byte[]>>DefaultImplementation. newKeyValueBytesSchema()static <K,V>
Schema<KeyValue<K,V>>DefaultImplementation. newKeyValueSchema(java.lang.Class<K> key, java.lang.Class<V> value, SchemaType type)static <K,V>
Schema<KeyValue<K,V>>DefaultImplementation. newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema)static <K,V>
Schema<KeyValue<K,V>>DefaultImplementation. newKeyValueSchema(Schema<K> keySchema, Schema<V> valueSchema, KeyValueEncodingType keyValueEncodingType)参数类型为KeyValue的org.apache.pulsar.client.internal中的方法 修饰符和类型 方法 说明 static java.lang.StringDefaultImplementation. convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)Convert the key/value schema data.static java.lang.StringDefaultImplementation. jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)Jsonify the key/value schema info. -
org.apache.pulsar.common.schema中KeyValue的使用
返回KeyValue的org.apache.pulsar.common.schema中的方法 修饰符和类型 方法 说明 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 aKeyValuepair.
-