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:
withAlwaysAllowNullin interfaceSchemaDefinitionBuilder<T>
-
withJSR310ConversionEnabled
- Specified by:
withJSR310ConversionEnabledin interfaceSchemaDefinitionBuilder<T>
-
addProperty
- Specified by:
addPropertyin interfaceSchemaDefinitionBuilder<T>
-
withPojo
- Specified by:
withPojoin interfaceSchemaDefinitionBuilder<T>
-
withClassLoader
- Specified by:
withClassLoaderin interfaceSchemaDefinitionBuilder<T>
-
withJsonDef
- Specified by:
withJsonDefin interfaceSchemaDefinitionBuilder<T>
-
withSupportSchemaVersioning
- Specified by:
withSupportSchemaVersioningin interfaceSchemaDefinitionBuilder<T>
-
withProperties
- Specified by:
withPropertiesin interfaceSchemaDefinitionBuilder<T>
-
withSchemaReader
- Specified by:
withSchemaReaderin interfaceSchemaDefinitionBuilder<T>
-
withSchemaWriter
- Specified by:
withSchemaWriterin interfaceSchemaDefinitionBuilder<T>
-
build
- Specified by:
buildin interfaceSchemaDefinitionBuilder<T>
-