public interface SchemaDefinitionBuilder<T>
SchemaDefinition
.Modifier and Type | Method and Description |
---|---|
SchemaDefinitionBuilder<T> |
addProperty(String key,
String value)
Set schema info properties
|
SchemaDefinition<T> |
build()
Build the schema definition.
|
SchemaDefinitionBuilder<T> |
withAlwaysAllowNull(boolean alwaysAllowNull)
Set schema whether always allow null or not
|
SchemaDefinitionBuilder<T> |
withJsonDef(String jsonDefinition)
Set schema of json definition
|
SchemaDefinitionBuilder<T> |
withPojo(Class pojo)
Set schema of pojo definition
|
SchemaDefinitionBuilder<T> |
withProperties(Map<String,String> properties)
Set schema info properties
|
SchemaDefinitionBuilder<T> |
withSupportSchemaVersioning(boolean supportSchemaVersioning)
Set schema whether decode by schema version
|
SchemaDefinitionBuilder<T> withAlwaysAllowNull(boolean alwaysAllowNull)
alwaysAllowNull
- definition null or notSchemaDefinitionBuilder<T> withProperties(Map<String,String> properties)
properties
- schema info propertiesSchemaDefinitionBuilder<T> addProperty(String key, String value)
key
- property keyvalue
- property valueSchemaDefinitionBuilder<T> withPojo(Class pojo)
pojo
- pojo schema definitionSchemaDefinitionBuilder<T> withJsonDef(String jsonDefinition)
jsonDefinition
- json schema definitionSchemaDefinitionBuilder<T> withSupportSchemaVersioning(boolean supportSchemaVersioning)
supportSchemaVersioning
- decode by versionSchemaDefinition<T> build()
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.