| 程序包 | 说明 |
|---|---|
| org.apache.pulsar.client.api | |
| org.apache.pulsar.client.api.schema | |
| org.apache.pulsar.client.internal | |
| org.apache.pulsar.common.schema |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SchemaInfo |
RecordSchemaBuilder.build(SchemaType schemaType)
Build the schema info.
|
S |
FieldSchemaBuilder.type(SchemaType type)
The type of this field.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> Schema<KeyValue<K,V>> |
DefaultImplementation.newKeyValueSchema(Class<K> key,
Class<V> value,
SchemaType type) |
| 限定符和类型 | 方法和说明 |
|---|---|
static SchemaType |
SchemaType.valueOf(int value) |
static SchemaType |
SchemaType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SchemaType[] |
SchemaType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.