| Package | Description |
|---|---|
| org.apache.pulsar.client.api |
Pulsar Client API.
|
| org.apache.pulsar.client.api.schema |
Schema definitions for 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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
KeyValueEncodingType |
KeyValueSchema.getKeyValueEncodingType()
Get the KeyValueEncodingType.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyValueEncodingType |
DefaultImplementation.decodeKeyValueEncodingType(SchemaInfo schemaInfo)
Decode the kv encoding type from the schema info.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SchemaInfo |
DefaultImplementation.encodeKeyValueSchemaInfo(Schema<K> keySchema,
Schema<V> valueSchema,
KeyValueEncodingType keyValueEncodingType)
Encode key & value into schema into a KeyValue schema.
|
static <K,V> SchemaInfo |
DefaultImplementation.encodeKeyValueSchemaInfo(String schemaName,
Schema<K> keySchema,
Schema<V> valueSchema,
KeyValueEncodingType keyValueEncodingType)
Encode key & value into schema into a KeyValue schema.
|
static <K,V> Schema<KeyValue<K,V>> |
DefaultImplementation.newKeyValueSchema(Schema<K> keySchema,
Schema<V> valueSchema,
KeyValueEncodingType keyValueEncodingType) |
| Modifier and Type | Method and Description |
|---|---|
static KeyValueEncodingType |
KeyValueEncodingType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyValueEncodingType[] |
KeyValueEncodingType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.