Interface Schema.Builder
-
- Enclosing interface:
- Schema
public static interface Schema.Builder
Allows to build a schema.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Schema
build()
Schema.Builder
withElementSchema(Schema schema)
Schema.Builder
withEntry(Schema.Entry entry)
Schema.Builder
withProp(String key, String value)
Schema.Builder
withProps(Map<String,String> props)
Schema.Builder
withType(Schema.Type type)
-
-
-
Method Detail
-
withType
Schema.Builder withType(Schema.Type type)
- Parameters:
type
- schema type.- Returns:
- this builder.
-
withEntry
Schema.Builder withEntry(Schema.Entry entry)
- Parameters:
entry
- element for either an array or record type.- Returns:
- this builder.
-
withElementSchema
Schema.Builder withElementSchema(Schema schema)
- Parameters:
schema
- nested element schema.- Returns:
- this builder.
-
withProps
Schema.Builder withProps(Map<String,String> props)
- Parameters:
props
- schema properties- Returns:
- this builder
-
withProp
Schema.Builder withProp(String key, String value)
- Parameters:
key
- the prop key namevalue
- the prop value- Returns:
- this builder
-
-