| 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.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
Schema.getSchemaInfo() |
| Modifier and Type | Method and Description |
|---|---|
default void |
Schema.configureSchemaInfo(String topic,
String componentName,
SchemaInfo schemaInfo)
Configure the schema to use the provided schema info.
|
static GenericSchema<GenericRecord> |
Schema.generic(SchemaInfo schemaInfo)
Returns a generic schema of existing schema info.
|
static Schema<?> |
Schema.getSchema(SchemaInfo schemaInfo) |
| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
RecordSchemaBuilder.build(SchemaType schemaType)
Build the schema info.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<SchemaInfo> |
SchemaInfoProvider.getLatestSchema()
Retrieve the latest schema info.
|
CompletableFuture<SchemaInfo> |
SchemaInfoProvider.getSchemaByVersion(byte[] schemaVersion)
Retrieve the schema info of a given schemaVersion.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericSchema |
GenericSchema.of(SchemaInfo schemaInfo) |
static GenericSchema |
GenericSchema.of(SchemaInfo schemaInfo,
boolean useProvidedSchemaAsReaderSchema) |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyValue<SchemaInfo,SchemaInfo> |
DefaultImplementation.decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
Decode the key/value schema info to get key schema info and value schema info.
|
static KeyValue<SchemaInfo,SchemaInfo> |
DefaultImplementation.decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
Decode the key/value schema info to get key schema info and value schema info.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyValueEncodingType |
DefaultImplementation.decodeKeyValueEncodingType(SchemaInfo schemaInfo)
Decode the kv encoding type from the schema info.
|
static KeyValue<SchemaInfo,SchemaInfo> |
DefaultImplementation.decodeKeyValueSchemaInfo(SchemaInfo schemaInfo)
Decode the key/value schema info to get key schema info and value schema info.
|
static GenericSchema<GenericRecord> |
DefaultImplementation.getGenericSchema(SchemaInfo schemaInfo) |
static Schema<?> |
DefaultImplementation.getSchema(SchemaInfo schemaInfo) |
static String |
DefaultImplementation.jsonifySchemaInfo(SchemaInfo schemaInfo)
Jsonify the schema info.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
DefaultImplementation.convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Convert the key/value schema data.
|
static String |
DefaultImplementation.convertKeyValueSchemaInfoDataToString(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Convert the key/value schema data.
|
static String |
DefaultImplementation.jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Jsonify the key/value schema info.
|
static String |
DefaultImplementation.jsonifyKeyValueSchemaInfo(KeyValue<SchemaInfo,SchemaInfo> kvSchemaInfo)
Jsonify the key/value schema info.
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.