Class SchemaIterable.ParentStructFieldInfo

Object
io.delta.kernel.internal.util.SchemaIterable.ParentStructFieldInfo
Enclosing class:
SchemaIterable

public static class SchemaIterable.ParentStructFieldInfo extends Object
Container for parent StructField information returned by SchemaIterable.SchemaElement.getParentStructFieldAndPath().
  • Constructor Details

    • ParentStructFieldInfo

      public ParentStructFieldInfo(StructField parentField, String pathFromParent)
  • Method Details

    • getParentField

      public StructField getParentField()
      Returns the nearest parent StructField.
    • getPathFromParent

      public String getPathFromParent()
      Returns the path from the nearest parent StructField. If the nearest parent StructField is a direct ancestor, this is "". Otherwise, the path is of the format ((key|value|element).)*(key|value|element)