接口的使用
org.apache.pulsar.client.api.schema.SchemaDefinitionBuilder
使用SchemaDefinitionBuilder的程序包
程序包
说明
Schema definitions for Pulsar Client API.
Helpers which provide useful functionality for the implementation of Pulsar Client API.
-
org.apache.pulsar.client.api.schema中SchemaDefinitionBuilder的使用
修饰符和类型方法说明SchemaDefinitionBuilder.addProperty
(String key, String value) Set schema info properties.static <T> SchemaDefinitionBuilder<T>
SchemaDefinition.builder()
Get a new builder instance that can used to configure and build aSchemaDefinition
instance.SchemaDefinitionBuilder.withAlwaysAllowNull
(boolean alwaysAllowNull) Set schema whether always allow null or not.SchemaDefinitionBuilder.withClassLoader
(ClassLoader classLoader) Set schema of pojo classLoader.SchemaDefinitionBuilder.withJsonDef
(String jsonDefinition) Set schema of json definition.SchemaDefinitionBuilder.withJSR310ConversionEnabled
(boolean jsr310ConversionEnabled) Set schema use JRS310 conversion or not.Set schema of pojo definition.SchemaDefinitionBuilder.withProperties
(Map<String, String> properties) Set schema info properties.SchemaDefinitionBuilder.withSchemaReader
(SchemaReader<T> reader) Set schema reader for deserialization of object data.SchemaDefinitionBuilder.withSchemaWriter
(SchemaWriter<T> writer) Set schema writer for serialization of objects.SchemaDefinitionBuilder.withSupportSchemaVersioning
(boolean supportSchemaVersioning) Set schema whether decode by schema version. -
org.apache.pulsar.client.internal中SchemaDefinitionBuilder的使用
修饰符和类型方法说明<T> SchemaDefinitionBuilder<T>
PulsarClientImplementationBinding.newSchemaDefinitionBuilder()