Class StructField

Object
io.delta.kernel.types.StructField

@Evolving public class StructField extends Object
Represents a subfield of StructType with additional properties and metadata.
Since:
3.0.0
  • Field Details

    • METADATA_ROW_INDEX_COLUMN_NAME

      public static String METADATA_ROW_INDEX_COLUMN_NAME
      The name of a row index metadata column. When present this column must be populated with row index of each row when reading from parquet.
    • METADATA_ROW_INDEX_COLUMN

      public static StructField METADATA_ROW_INDEX_COLUMN
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns:
      the name of this field
    • getDataType

      public DataType getDataType()
      Returns:
      the data type of this field
    • getMetadata

      public FieldMetadata getMetadata()
      Returns:
      the metadata for this field
    • isNullable

      public boolean isNullable()
      Returns:
      whether this field allows to have a null value.
    • isMetadataColumn

      public boolean isMetadataColumn()
    • isDataColumn

      public boolean isDataColumn()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public String toJson()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object