| 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(Class<K> key,
Class<V> value,
SchemaType type)
Key Value Schema using passed in schema type, support JSON and AVRO currently.
|
| Modifier and Type | Method and Description |
|---|---|
default SchemaType |
GenericRecord.getSchemaType()
Return the schema tyoe.
|
SchemaType |
GenericObject.getSchemaType()
Return the schema tyoe.
|
| Modifier and Type | Method and Description |
|---|---|
SchemaInfo |
RecordSchemaBuilder.build(SchemaType schemaType)
Build the schema info.
|
T |
FieldSchemaBuilder.type(SchemaType type)
The type of this field.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> Schema<KeyValue<K,V>> |
PulsarClientImplementationBinding.newKeyValueSchema(Class<K> key,
Class<V> value,
SchemaType type) |
| Modifier and Type | Method and Description |
|---|---|
SchemaType |
SchemaInfo.getType()
The type of schema (AVRO, JSON, PROTOBUF, etc..).
|
static SchemaType |
SchemaType.valueOf(int value) |
static SchemaType |
SchemaType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchemaType[] |
SchemaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SchemaType.isPrimitiveType(SchemaType type) |
static boolean |
SchemaType.isStructType(SchemaType type) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.