Interface Schema.Entry
- All Known Implementing Classes:
Schema.Entry
- Enclosing interface:
- Schema
public static interface Schema.Entry
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Plain builder matchingSchema.Entry
structure. -
Method Summary
Modifier and TypeMethodDescription<T> T
default javax.json.JsonValue
getJsonProp
(String name) Get a property values from entry with its name.default String
getName()
getProps()
getType()
boolean
boolean
default Schema.Entry.Builder
-
Method Details
-
getName
- Returns:
- The name of this entry.
-
getRawName
- Returns:
- The raw name of this entry.
-
getOriginalFieldName
- Returns:
- the raw name of this entry if exists, else return name.
-
getType
- Returns:
- Type of the entry, this determine which other fields are populated.
-
isNullable
boolean isNullable()- Returns:
- Is this entry nullable or always valued.
-
isMetadata
boolean isMetadata()- Returns:
- true if this entry is for metadata; false for ordinary data.
-
getDefaultValue
- Type Parameters:
T
- the default value type.- Returns:
- Default value for this entry.
-
getElementSchema
- Returns:
- For type == record, the element type.
-
getComment
- Returns:
- Allows to associate to this field a comment - for doc purposes, no use in the runtime.
-
getProps
- Returns:
- the metadata props
-
getProp
- Parameters:
property
- : property name.- Returns:
- the requested metadata prop
-
getJsonProp
Get a property values from entry with its name.- Parameters:
name
- : property's name.- Returns:
- property's value.
-
getLogicalType
- Returns:
- the logical type property
-
toBuilder
- Returns:
- an
Schema.Entry.Builder
from this entry.
-