| Package | Description |
|---|---|
| org.apache.calcite.adapter.elasticsearch |
Base classes for a query provider based on an Elasticsearch DB.
|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.tools |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ElasticsearchRules.RexToElasticsearchTranslator.visitInputRef(RexInputRef inputRef) |
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<RexInputRef,RexImplicationChecker.InputRefUsage<SqlOperator,RexNode>> |
RexImplicationChecker.InputUsageFinder.usageMap |
| Modifier and Type | Method and Description |
|---|---|
private RexImplicationChecker.InputRefUsage<SqlOperator,RexNode> |
RexImplicationChecker.InputUsageFinder.getUsageMap(RexInputRef rex) |
boolean |
Strong.isNull(RexInputRef ref)
Returns whether a given input is definitely null.
|
private void |
RexImplicationChecker.InputUsageFinder.updateUsage(SqlOperator op,
RexInputRef inputRef,
RexNode literal) |
Void |
RexImplicationChecker.InputUsageFinder.visitInputRef(RexInputRef inputRef) |
RexNode |
RelOptUtil.InputReferencedVisitor.visitInputRef(RexInputRef inputRef) |
Void |
RelOptUtil.InputFinder.visitInputRef(RexInputRef inputRef) |
RexNode |
RelOptUtil.RexInputConverter.visitInputRef(RexInputRef var) |
| Modifier and Type | Method and Description |
|---|---|
static DataContext |
VisitorDataContext.of(RelDataType rowType,
List<Pair<RexInputRef,RexNode>> usageList) |
static RexNode |
RelOptUtil.splitCorrelatedFilterCondition(LogicalFilter filter,
List<RexInputRef> joinKeys,
List<RexNode> correlatedJoinKeys)
Deprecated.
|
private static void |
RelOptUtil.splitCorrelatedFilterCondition(LogicalFilter filter,
RexNode condition,
List<RexInputRef> joinKeys,
List<RexNode> correlatedJoinKeys,
List<RexNode> nonEquiList) |
| Modifier and Type | Field and Description |
|---|---|
private Map<RexInputRef,RexNode> |
RelMdExpressionLineage.RexReplacer.replacementValues |
| Modifier and Type | Method and Description |
|---|---|
Double |
RelMdUtil.CardOfProjExpr.visitInputRef(RexInputRef var) |
RexNode |
RelMdExpressionLineage.RexReplacer.visitInputRef(RexInputRef inputRef) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelMdUtil.areColumnsDefinitelyUnique(RelMetadataQuery mq,
RelNode rel,
List<RexInputRef> columnRefs) |
static boolean |
RelMdUtil.areColumnsDefinitelyUniqueWhenNullsFiltered(RelMetadataQuery mq,
RelNode rel,
List<RexInputRef> columnRefs) |
static Boolean |
RelMdUtil.areColumnsUnique(RelMetadataQuery mq,
RelNode rel,
List<RexInputRef> columnRefs) |
static Boolean |
RelMdUtil.areColumnsUniqueWhenNullsFiltered(RelMetadataQuery mq,
RelNode rel,
List<RexInputRef> columnRefs) |
private static Set<RexNode> |
RelMdExpressionLineage.createAllPossibleExpressions(RexBuilder rexBuilder,
RexNode expr,
ImmutableBitSet predFieldsUsed,
Map<RexInputRef,Set<RexNode>> mapping,
Map<RexInputRef,RexNode> singleMapping) |
private static Set<RexNode> |
RelMdExpressionLineage.createAllPossibleExpressions(RexBuilder rexBuilder,
RexNode expr,
ImmutableBitSet predFieldsUsed,
Map<RexInputRef,Set<RexNode>> mapping,
Map<RexInputRef,RexNode> singleMapping) |
protected static Set<RexNode> |
RelMdExpressionLineage.createAllPossibleExpressions(RexBuilder rexBuilder,
RexNode expr,
Map<RexInputRef,Set<RexNode>> mapping)
Given an expression, it will create all equivalent expressions resulting
from replacing all possible combinations of references in the mapping by
the corresponding expressions.
|
private static void |
RelMdExpressionLineage.createExpressions(RexBuilder rexBuilder,
RexNode expr,
ImmutableBitSet predFieldsUsed,
Map<RexInputRef,Set<RexNode>> mapping,
Map<RexInputRef,RexNode> singleMapping,
Set<RexNode> result) |
private static void |
RelMdExpressionLineage.createExpressions(RexBuilder rexBuilder,
RexNode expr,
ImmutableBitSet predFieldsUsed,
Map<RexInputRef,Set<RexNode>> mapping,
Map<RexInputRef,RexNode> singleMapping,
Set<RexNode> result) |
| Constructor and Description |
|---|
RexReplacer(Map<RexInputRef,RexNode> replacementValues) |
| Modifier and Type | Method and Description |
|---|---|
private RexInputRef |
SubQueryRemoveRule.field(RelBuilder builder,
int inputCount,
int offset)
Returns a reference to a particular field, by offset, across several
inputs on a
RelBuilder's stack. |
| Modifier and Type | Method and Description |
|---|---|
RexNode |
ReduceExpressionsRule.RexReplacer.visitInputRef(RexInputRef inputRef) |
Void |
ReduceExpressionsRule.ReducibleExprLocator.visitInputRef(RexInputRef inputRef) |
RexNode |
CalcRelSplitter.InputToCommonExprConverter.visitInputRef(RexInputRef input) |
Void |
JoinToMultiJoinRule.InputReferenceCounter.visitInputRef(RexInputRef inputRef) |
Void |
PushProjector.InputSpecialOpFinder.visitInputRef(RexInputRef inputRef) |
RexNode |
ValuesReduceRule.MyRexShuttle.visitInputRef(RexInputRef inputRef) |
| Modifier and Type | Method and Description |
|---|---|
private void |
AggregateExpandDistinctAggregatesRule.doRewrite(RelBuilder relBuilder,
Aggregate aggregate,
int n,
List<Integer> argList,
int filterArg,
List<RexInputRef> refs)
Converts all distinct aggregate calls to a given set of arguments.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RexPatternFieldRef
Variable which references a field of an input relational expression
|
class |
RexTableInputRef
Variable which references a column of a table occurrence in a relational plan.
|
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.base.Function<RelDataTypeField,RexInputRef> |
RexBuilder.TO_INPUT_REF |
| Modifier and Type | Method and Description |
|---|---|
RexInputRef |
RexBuilder.makeInputRef(RelDataType type,
int i)
Creates a reference to a given field of the input record.
|
RexInputRef |
RexBuilder.makeInputRef(RelNode input,
int i)
Creates a reference to a given field of the input relational expression.
|
static RexInputRef |
RexInputRef.of(int index,
List<RelDataTypeField> fields)
Creates a reference to a given field in a list of fields.
|
static RexInputRef |
RexInputRef.of(int index,
RelDataType rowType)
Creates a reference to a given field in a row type.
|
| Modifier and Type | Method and Description |
|---|---|
SqlNode |
RexToSqlNodeConverterImpl.convertInputRef(RexInputRef ref) |
SqlNode |
RexToSqlNodeConverter.convertInputRef(RexInputRef ref)
Converts a
RexInputRef to a SqlIdentifier. |
static RexTableInputRef |
RexTableInputRef.of(RexTableInputRef.RelTableRef tableRef,
RexInputRef ref) |
static RexPatternFieldRef |
RexPatternFieldRef.of(String alpha,
RexInputRef ref) |
RexNode |
RexPermuteInputsShuttle.visitInputRef(RexInputRef local) |
RexNode |
RexCopier.visitInputRef(RexInputRef inputRef) |
R |
RexVisitor.visitInputRef(RexInputRef inputRef) |
Boolean |
RexUtil.ConstantFinder.visitInputRef(RexInputRef inputRef) |
RexNode |
RexUtil.ExpressionNormalizer.visitInputRef(RexInputRef inputRef) |
Void |
RexUtil.ForwardRefFinder.visitInputRef(RexInputRef inputRef) |
RexNode |
RexUtil.RexShiftShuttle.visitInputRef(RexInputRef input) |
RexNode |
RexUtil.FixNullabilityShuttle.visitInputRef(RexInputRef ref) |
R |
RexVisitorImpl.visitInputRef(RexInputRef inputRef) |
Boolean |
RexChecker.visitInputRef(RexInputRef ref) |
RexNode |
RexShuttle.visitInputRef(RexInputRef inputRef) |
RexNode |
RexProgramBuilder.RegisterInputShuttle.visitInputRef(RexInputRef input) |
RexNode |
RexProgramBuilder.RegisterOutputShuttle.visitInputRef(RexInputRef input) |
RexNode |
RexProgram.Marshaller.visitInputRef(RexInputRef inputRef) |
R |
RexBiVisitor.visitInputRef(RexInputRef inputRef,
P arg) |
RelOptUtil.Logic |
LogicVisitor.visitInputRef(RexInputRef inputRef,
RelOptUtil.Logic arg) |
| Modifier and Type | Field and Description |
|---|---|
(package private) RexInputRef |
RelDecorrelator.RemoveCorrelationRexShuttle.nullIndicator |
| Modifier and Type | Method and Description |
|---|---|
private static RexInputRef |
RelDecorrelator.getNewForOldInputRef(RelNode currentRel,
Map<RelNode,RelDecorrelator.Frame> map,
RexInputRef oldInputRef) |
| Modifier and Type | Method and Description |
|---|---|
protected RexNode |
SqlToRelConverter.adjustInputRef(SqlToRelConverter.Blackboard bb,
RexInputRef inputRef)
Adjusts the type of a reference to an input field to account for nulls
introduced by outer joins; and adjusts the offset to match the physical
implementation.
|
private RexNode |
RelDecorrelator.RemoveCorrelationRexShuttle.createCaseExpression(RexInputRef nullInputRef,
RexLiteral lit,
RexNode rexNode) |
private static RexInputRef |
RelDecorrelator.getNewForOldInputRef(RelNode currentRel,
Map<RelNode,RelDecorrelator.Frame> map,
RexInputRef oldInputRef) |
(package private) RelDataTypeField |
SqlToRelConverter.Blackboard.getRootField(RexInputRef inputRef) |
protected RexNode |
RelDecorrelator.removeCorrelationExpr(RexNode exp,
boolean projectPulledAboveLeftCorrelator,
RexInputRef nullIndicator) |
RexNode |
RelDecorrelator.DecorrelateRexShuttle.visitInputRef(RexInputRef inputRef) |
RexNode |
RelDecorrelator.RemoveCorrelationRexShuttle.visitInputRef(RexInputRef inputRef) |
RexNode |
RelStructuredTypeFlattener.RewriteRexShuttle.visitInputRef(RexInputRef input) |
| Constructor and Description |
|---|
RemoveCorrelationRexShuttle(RexBuilder rexBuilder,
boolean projectPulledAboveLeftCorrelator,
RexInputRef nullIndicator,
Set<Integer> isCount) |
| Modifier and Type | Method and Description |
|---|---|
RexInputRef |
RelBuilder.field(int fieldOrdinal)
Creates a reference to an input field by ordinal.
|
RexInputRef |
RelBuilder.field(int inputCount,
int inputOrdinal,
int fieldOrdinal)
Creates a reference to a field of a given input relational expression
by ordinal.
|
RexInputRef |
RelBuilder.field(int inputCount,
int inputOrdinal,
String fieldName)
Creates a reference to a field of given input relational expression
by name.
|
RexInputRef |
RelBuilder.field(String fieldName)
Creates a reference to a field by name.
|
| Modifier and Type | Method and Description |
|---|---|
RexNode |
RelBuilder.Shifter.visitInputRef(RexInputRef inputRef) |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.