Class Field


  • public class Field
    extends Object

    A field in a Struct, consisting of a field name, index, and Schema for the field value.

    • Constructor Detail

      • Field

        public Field​(String name,
                     int index,
                     Schema schema)
    • Method Detail

      • name

        public String name()
        Get the name of this field.
        Returns:
        the name of this field
      • index

        public int index()
        Get the index of this field within the struct.
        Returns:
        the index of this field
      • schema

        public Schema schema()
        Get the schema of this field
        Returns:
        the schema of values of this field
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object