Package | Description |
---|---|
org.apache.pulsar.client.api | |
org.apache.pulsar.client.internal |
Modifier and Type | Method and Description |
---|---|
static <K,V> Schema<KeyValue<K,V>> |
Schema.KeyValue(Class<K> key,
Class<V> value)
Key Value Schema whose underneath key and value schemas are JSONSchema.
|
static <K,V> Schema<KeyValue<K,V>> |
Schema.KeyValue(Class<K> key,
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 Schema<KeyValue<byte[],byte[]>> |
Schema.KV_BYTES()
Schema that can be used to encode/decode KeyValue.
|
Modifier and Type | Method and Description |
---|---|
static Schema<KeyValue<byte[],byte[]>> |
DefaultImplementation.newKeyValueBytesSchema() |
static <K,V> Schema<KeyValue<K,V>> |
DefaultImplementation.newKeyValueSchema(Class<K> key,
Class<V> value,
SchemaType type) |
static <K,V> Schema<KeyValue<K,V>> |
DefaultImplementation.newKeyValueSchema(Schema<K> keySchema,
Schema<V> valueSchema) |
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.