Class SchemaDefinitionBuilderImpl<T>
java.lang.Object
org.apache.pulsar.client.impl.schema.SchemaDefinitionBuilderImpl<T>
- All Implemented Interfaces:
SchemaDefinitionBuilder<T>
Builder to build
GenericRecord
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty
(String key, String value) build()
withAlwaysAllowNull
(boolean alwaysAllowNull) withClassLoader
(ClassLoader classLoader) withJsonDef
(String jsonDef) withJSR310ConversionEnabled
(boolean jsr310ConversionEnabled) withProperties
(Map<String, String> properties) withSchemaReader
(SchemaReader<T> reader) withSchemaWriter
(SchemaWriter<T> writer) withSupportSchemaVersioning
(boolean supportSchemaVersioning)
-
Field Details
-
ALWAYS_ALLOW_NULL
- See Also:
-
JSR310_CONVERSION_ENABLED
- See Also:
-
-
Constructor Details
-
SchemaDefinitionBuilderImpl
public SchemaDefinitionBuilderImpl()
-
-
Method Details
-
withAlwaysAllowNull
- Specified by:
withAlwaysAllowNull
in interfaceSchemaDefinitionBuilder<T>
-
withJSR310ConversionEnabled
- Specified by:
withJSR310ConversionEnabled
in interfaceSchemaDefinitionBuilder<T>
-
addProperty
- Specified by:
addProperty
in interfaceSchemaDefinitionBuilder<T>
-
withPojo
- Specified by:
withPojo
in interfaceSchemaDefinitionBuilder<T>
-
withClassLoader
- Specified by:
withClassLoader
in interfaceSchemaDefinitionBuilder<T>
-
withJsonDef
- Specified by:
withJsonDef
in interfaceSchemaDefinitionBuilder<T>
-
withSupportSchemaVersioning
- Specified by:
withSupportSchemaVersioning
in interfaceSchemaDefinitionBuilder<T>
-
withProperties
- Specified by:
withProperties
in interfaceSchemaDefinitionBuilder<T>
-
withSchemaReader
- Specified by:
withSchemaReader
in interfaceSchemaDefinitionBuilder<T>
-
withSchemaWriter
- Specified by:
withSchemaWriter
in interfaceSchemaDefinitionBuilder<T>
-
build
- Specified by:
build
in interfaceSchemaDefinitionBuilder<T>
-