Class Field

java.lang.Object
org.apache.kafka.connect.data.Field

public class Field
extends Object

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

  • Constructor Details

    • Field

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

    • 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
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object