Class Column

Object
io.delta.kernel.expressions.Column
All Implemented Interfaces:
Expression

@Evolving public final class Column extends Object implements Expression
An expression type that refers to a column (case-sensitive) in the input. The column name is either a single name or array of names (when referring to a nested column).
Since:
3.0.0
  • Constructor Details

    • Column

      public Column(String name)
      Create a column expression for referring to a column.
    • Column

      public Column(String[] names)
      Create a column expression to refer to a nested column.
  • Method Details

    • getNames

      public String[] getNames()
      Returns:
      the column names. Each part in the name correspond to one level of nested reference.
    • getChildren

      public List<Expression> getChildren()
      Specified by:
      getChildren in interface Expression
      Returns:
      a list of expressions that are input to this expression.
    • toString

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

      public Column appendNestedField(String name)
      Returns a new column that appends the input column name to the current column. Corresponds to an additional level of nested reference.
      Parameters:
      name - the column name to append
      Returns:
      the new column
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object