public class HiveRelBuilder
extends org.apache.calcite.tools.RelBuilder
RelBuilder does not make possible anything that you could not
also accomplish by calling the factory methods of the particular relational
expression. But it makes common tasks more straightforward and concise.
It is not thread-safe.
| Modifier and Type | Method and Description |
|---|---|
static org.apache.calcite.tools.RelBuilder |
create(org.apache.calcite.tools.FrameworkConfig config)
Creates a RelBuilder.
|
org.apache.calcite.tools.RelBuilder |
empty()
Empty relationship can be expressed in many different ways, e.g.,
filter(cond=false), empty LogicalValues(), etc.
|
org.apache.calcite.tools.RelBuilder |
filter(Iterable<? extends org.apache.calcite.rex.RexNode> predicates) |
static org.apache.calcite.sql.SqlFunction |
getFloorSqlFunction(org.apache.calcite.avatica.util.TimeUnitRange flag) |
static org.apache.calcite.sql.SqlAggFunction |
getRollup(org.apache.calcite.sql.SqlAggFunction aggregation) |
static org.apache.calcite.tools.RelBuilderFactory |
proto(org.apache.calcite.plan.Context context)
Creates a
RelBuilderFactory, a partially-created RelBuilder. |
static org.apache.calcite.tools.RelBuilderFactory |
proto(Object... factories)
Creates a
RelBuilderFactory that uses a given set of factories. |
aggregate, aggregate, aggregate, aggregateCall, aggregateCall, aggregateCall, aggregateCall, alias, and, and, as, avg, build, call, call, cast, cast, cast, clear, convert, count, countStar, desc, distinct, dot, dot, equals, field, field, field, field, field, field, field, fields, fields, fields, fields, fields, fields, filter, getRexBuilder, getTypeFactory, groupKey, groupKey, groupKey, groupKey, groupKey, groupKey, groupKey, groupKey, intersect, intersect, isNotNull, isNull, join, join, join, join, join, limit, literal, match, max, min, minus, minus, not, notEquals, nullsFirst, nullsLast, or, or, patternAlter, patternAlter, patternConcat, patternConcat, patternExclude, patternField, patternPermute, patternPermute, patternQuantify, patternQuantify, peek, peek, peek, permute, project, project, project, project, push, pushAll, rename, scan, scan, semiJoin, semiJoin, sort, sort, sort, sortLimit, sortLimit, sum, union, union, values, values, values, values, variablepublic static org.apache.calcite.tools.RelBuilder create(org.apache.calcite.tools.FrameworkConfig config)
public static org.apache.calcite.tools.RelBuilderFactory proto(org.apache.calcite.plan.Context context)
RelBuilderFactory, a partially-created RelBuilder.
Just add a RelOptCluster and a RelOptSchemapublic static org.apache.calcite.tools.RelBuilderFactory proto(Object... factories)
RelBuilderFactory that uses a given set of factories.public org.apache.calcite.tools.RelBuilder filter(Iterable<? extends org.apache.calcite.rex.RexNode> predicates)
filter in class org.apache.calcite.tools.RelBuilderpublic org.apache.calcite.tools.RelBuilder empty()
empty in class org.apache.calcite.tools.RelBuilderpublic static org.apache.calcite.sql.SqlFunction getFloorSqlFunction(org.apache.calcite.avatica.util.TimeUnitRange flag)
public static org.apache.calcite.sql.SqlAggFunction getRollup(org.apache.calcite.sql.SqlAggFunction aggregation)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.