Class OperationTreeBuilder
- java.lang.Object
-
- org.apache.flink.table.operations.utils.OperationTreeBuilder
-
@Internal public final class OperationTreeBuilder extends Object
A builder for constructing validatedQueryOperation
s.
-
-
Method Summary
-
-
-
Method Detail
-
create
public static OperationTreeBuilder create(TableConfig tableConfig, ClassLoader userClassLoader, FunctionLookup functionCatalog, DataTypeFactory typeFactory, TableReferenceLookup tableReferenceLookup, SqlExpressionResolver sqlExpressionResolver, boolean isStreamingMode)
-
project
public QueryOperation project(List<Expression> projectList, QueryOperation child)
-
project
public QueryOperation project(List<Expression> projectList, QueryOperation child, boolean explicitAlias)
-
project
public QueryOperation project(List<Expression> projectList, QueryOperation child, List<OverWindow> overWindows)
-
addColumns
public QueryOperation addColumns(boolean replaceIfExist, List<Expression> fieldLists, QueryOperation child)
Adds additional columns. Existing fields will be replaced if replaceIfExist is true.
-
renameColumns
public QueryOperation renameColumns(List<Expression> aliases, QueryOperation child)
-
dropColumns
public QueryOperation dropColumns(List<Expression> fieldLists, QueryOperation child)
-
aggregate
public QueryOperation aggregate(List<Expression> groupingExpressions, List<Expression> aggregates, QueryOperation child)
-
windowAggregate
public QueryOperation windowAggregate(List<Expression> groupingExpressions, GroupWindow window, List<Expression> windowProperties, List<Expression> aggregates, QueryOperation child)
-
windowAggregate
public QueryOperation windowAggregate(List<Expression> groupingExpressions, GroupWindow window, List<Expression> windowProperties, Expression aggregateFunction, QueryOperation child)
-
join
public QueryOperation join(QueryOperation left, QueryOperation right, JoinQueryOperation.JoinType joinType, Optional<Expression> condition, boolean correlated)
-
joinLateral
public QueryOperation joinLateral(QueryOperation left, Expression tableFunction, JoinQueryOperation.JoinType joinType, Optional<Expression> condition)
-
resolveExpression
public Expression resolveExpression(Expression expression, QueryOperation... tableOperation)
-
getResolverBuilder
public ExpressionResolver.ExpressionResolverBuilder getResolverBuilder(QueryOperation... tableOperation)
-
sort
public QueryOperation sort(List<Expression> fields, QueryOperation child)
-
limitWithOffset
public QueryOperation limitWithOffset(int offset, QueryOperation child)
-
limitWithFetch
public QueryOperation limitWithFetch(int fetch, QueryOperation child)
-
alias
public QueryOperation alias(List<Expression> fields, QueryOperation child)
-
filter
public QueryOperation filter(Expression condition, QueryOperation child)
-
distinct
public QueryOperation distinct(QueryOperation child)
-
minus
public QueryOperation minus(QueryOperation left, QueryOperation right, boolean all)
-
intersect
public QueryOperation intersect(QueryOperation left, QueryOperation right, boolean all)
-
union
public QueryOperation union(QueryOperation left, QueryOperation right, boolean all)
-
map
public QueryOperation map(Expression mapFunction, QueryOperation child)
-
flatMap
public QueryOperation flatMap(Expression tableFunctionCall, QueryOperation child)
-
aggregate
public QueryOperation aggregate(List<Expression> groupingExpressions, Expression aggregate, QueryOperation child)
-
values
public QueryOperation values(DataType rowType, Expression... expressions)
-
values
public QueryOperation values(Expression... expressions)
-
tableAggregate
public QueryOperation tableAggregate(List<Expression> groupingExpressions, Expression tableAggFunction, QueryOperation child)
-
windowTableAggregate
public QueryOperation windowTableAggregate(List<Expression> groupingExpressions, GroupWindow window, List<Expression> windowProperties, Expression tableAggFunction, QueryOperation child)
-
-