| 程序包 | 说明 |
|---|---|
| org.apache.pulsar.client.api | |
| org.apache.pulsar.client.api.schema | |
| org.apache.pulsar.client.internal |
| 限定符和类型 | 方法和说明 |
|---|---|
static Schema<GenericRecord> |
Schema.AUTO_CONSUME()
Create a schema instance that automatically deserialize messages
based on the current topic schema.
|
static Schema<GenericRecord> |
Schema.AUTO()
已过时。
|
static GenericSchema<GenericRecord> |
Schema.generic(SchemaInfo schemaInfo)
Returns a generic schema of existing schema info.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
GenericSchema<T extends GenericRecord>
A schema that serializes and deserializes between
GenericRecord and bytes. |
| 限定符和类型 | 方法和说明 |
|---|---|
GenericRecord |
GenericRecordBuilder.build()
Build a generic record.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static GenericSchema<GenericRecord> |
DefaultImplementation.getGenericSchema(SchemaInfo schemaInfo) |
static Schema<GenericRecord> |
DefaultImplementation.newAutoConsumeSchema() |
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.