Class NestedFieldReferenceExpression
- java.lang.Object
-
- org.apache.flink.table.expressions.NestedFieldReferenceExpression
-
- All Implemented Interfaces:
Expression
,ResolvedExpression
@PublicEvolving public class NestedFieldReferenceExpression extends Object implements ResolvedExpression
A reference to a nested field in an input. The reference contains:- nested field names to traverse from the top level column to the nested leaf column.
- nested field indices to traverse from the top level column to the nested leaf column.
- type
-
-
Constructor Summary
Constructors Constructor Description NestedFieldReferenceExpression(String[] fieldNames, int[] fieldIndices, DataType dataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(ExpressionVisitor<R> visitor)
String
asSummaryString()
Returns a string that summarizes this expression for printing to a console.boolean
equals(Object o)
List<Expression>
getChildren()
int[]
getFieldIndices()
String[]
getFieldNames()
String
getName()
DataType
getOutputDataType()
Returns the data type of the computation result.List<ResolvedExpression>
getResolvedChildren()
int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.expressions.ResolvedExpression
asSerializableString
-
-
-
-
Method Detail
-
getFieldNames
public String[] getFieldNames()
-
getFieldIndices
public int[] getFieldIndices()
-
getName
public String getName()
-
getOutputDataType
public DataType getOutputDataType()
Description copied from interface:ResolvedExpression
Returns the data type of the computation result.- Specified by:
getOutputDataType
in interfaceResolvedExpression
-
getResolvedChildren
public List<ResolvedExpression> getResolvedChildren()
- Specified by:
getResolvedChildren
in interfaceResolvedExpression
-
asSummaryString
public String asSummaryString()
Description copied from interface:Expression
Returns a string that summarizes this expression for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryString
in interfaceExpression
- Returns:
- summary string of this expression for debugging purposes
-
getChildren
public List<Expression> getChildren()
- Specified by:
getChildren
in interfaceExpression
-
accept
public <R> R accept(ExpressionVisitor<R> visitor)
- Specified by:
accept
in interfaceExpression
-
-