Class NameAndPosition

java.lang.Object
io.trino.spi.function.table.NameAndPosition

@Experimental(eta="2022-10-31") public class NameAndPosition extends Object
This class represents a descriptor field reference. `name` is the descriptor argument name, `position` is the zero-based field index.

The specified field contains a column name, as passed by the Table Function caller. The column name is associated with an appropriate input table during the Analysis phase. The Table Function is supposed to refer to input data using `NameAndPosition`, and the engine should provide the requested column.

  • Constructor Details

    • NameAndPosition

      public NameAndPosition(String name, int position)
  • Method Details

    • getName

      public String getName()
    • getPosition

      public int getPosition()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object