Interface Schema.Entry

All Known Implementing Classes:
Schema.Entry
Enclosing interface:
Schema

public static interface Schema.Entry
  • 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

      <T> T 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

      String getProp(String property)
      Parameters:
      property - : property name.
      Returns:
      the requested metadata prop
    • getJsonProp

      default javax.json.JsonValue getJsonProp(String name)
      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.