Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleNestedFieldReferenceExpression.java

public final class NestedFieldReferenceExpression implements ResolvedExpression {

    private final String nestedFieldName;

    private final DataType dataType;

    /**
     * index of an input the field belongs to. e.g. for a join, `inputIndex` of left input is 0 and
     * `inputIndex` of right input is 1.
     */
    private final int inputIndex;

    /**
     * Nested field reference index to traverse from the top level column to the nested leaf column
     */
    private final int[] nestedFieldIndexArray;

    public NestedFieldReferenceExpression(
            String nestedFieldName,
            DataType dataType,
            int inputIndex,
            int[] nestedFieldIndexArray) {
        this.nestedFieldName = nestedFieldName;
        this.dataType = dataType;
        this.inputIndex = inputIndex;
        this.nestedFieldIndexArray = nestedFieldIndexArray;
    }

...