| Package | Description |
|---|---|
| org.apache.calcite.plan |
Defines interfaces for constructing rule-based optimizers of
relational expressions.
|
| org.apache.calcite.plan.volcano |
Optimizes relational expressions.
|
| org.apache.calcite.rel |
Defines relational expressions.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| org.apache.calcite.util |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RelOptUtil.eq(String desc1,
RelDataType type1,
String desc2,
RelDataType type2,
Litmus litmus)
Returns whether two types are equal using '='.
|
static boolean |
RelOptUtil.equal(String desc1,
RelDataType type1,
String desc2,
RelDataType type2,
Litmus litmus)
Returns whether two types are equal using
RelOptUtil.areRowTypesEqual(RelDataType, RelDataType, boolean). |
static boolean |
SubstitutionVisitor.equalType(String desc0,
MutableRel rel0,
String desc1,
MutableRel rel1,
Litmus litmus)
Returns whether two relational expressions have the same row-type.
|
static boolean |
RelOptUtil.equalType(String desc0,
RelNode rel0,
String desc1,
RelNode rel1,
Litmus litmus)
Returns whether two relational expressions have the same row-type.
|
static boolean |
RelOptUtil.notContainsCorrelation(RelNode r,
CorrelationId correlationId,
Litmus litmus)
Returns true, and calls
succeed() if a given relational
expression does not contain a given correlation. |
| Modifier and Type | Method and Description |
|---|---|
private static <E> boolean |
VolcanoRuleMatch.allNotNull(E[] es,
Litmus litmus)
Returns whether all elements of a given array are not-null;
fails if any are null.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AbstractRelNode.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
RelNode.isValid(Litmus litmus,
RelNode.Context context)
Returns whether this relational expression is valid.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Filter.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Project.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Correlate.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Aggregate.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Calc.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Window.isValid(Litmus litmus,
RelNode.Context context) |
boolean |
Join.isValid(Litmus litmus,
RelNode.Context context) |
private boolean |
Aggregate.typeMatchesInferred(AggregateCall aggCall,
Litmus litmus)
Returns whether the inferred type of an
AggregateCall matches the
type it was given when it was created. |
| Modifier and Type | Field and Description |
|---|---|
protected Litmus |
RexChecker.litmus |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RexUtil.compatibleTypes(List<RexNode> exprs,
RelDataType type,
Litmus litmus)
Returns whether the type of an array of expressions is compatible with a
struct type.
|
static boolean |
RexUtil.containIdentity(List<? extends RexNode> exprs,
RelDataType rowType,
Litmus litmus)
Returns whether the leading edge of a given array of expressions is
wholly
RexInputRef objects with types corresponding to the
underlying datatype. |
static boolean |
RexUtil.containNoCommonExprs(List<RexNode> exprs,
Litmus litmus)
Returns whether an array of expressions has any common sub-expressions.
|
static boolean |
RexUtil.containNoForwardRefs(List<RexNode> exprs,
RelDataType inputRowType,
Litmus litmus)
Returns whether an array of expressions contains no forward references.
|
(package private) static boolean |
RexUtil.containNoNonTrivialAggs(List<RexNode> exprs,
Litmus litmus)
Returns whether an array of exp contains no aggregate function calls whose
arguments are not
RexInputRefs. |
boolean |
RexProgram.isNormalized(Litmus litmus,
RexBuilder rexBuilder)
Returns whether this program is in canonical form.
|
boolean |
RexProgram.isValid(Litmus litmus,
RelNode.Context context)
Checks that this program is valid.
|
static boolean |
RexLiteral.validConstant(Object o,
Litmus litmus)
Returns whether a value is valid as a constant value, using the same
criteria as
RexLiteral.valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean). |
| Constructor and Description |
|---|
Checker(RelDataType inputRowType,
List<RelDataType> internalExprTypeList,
RelNode.Context context,
Litmus litmus)
Creates a Checker.
|
RexChecker(List<RelDataType> inputTypeList,
RelNode.Context context,
Litmus litmus)
Creates a RexChecker with a given set of input fields.
|
RexChecker(RelDataType inputRowType,
RelNode.Context context,
Litmus litmus)
Creates a RexChecker with a given input row type.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SqlNode.equalDeep(List<SqlNode> operands0,
List<SqlNode> operands1,
Litmus litmus)
Returns whether two lists of operands are equal.
|
static boolean |
SqlNode.equalDeep(SqlNode node1,
SqlNode node2,
Litmus litmus)
Returns whether two nodes are equal (using
SqlNode.equalsDeep(SqlNode, Litmus)) or are both null. |
boolean |
SqlIdentifier.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlWindow.equalsDeep(SqlNode node,
Litmus litmus)
Overridden method to specifically check only the right subtree of a window
definition.
|
boolean |
SqlDynamicParam.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlCall.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlLiteral.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlIntervalQualifier.equalsDeep(SqlNode node,
Litmus litmus) |
abstract boolean |
SqlNode.equalsDeep(SqlNode node,
Litmus litmus)
Returns whether this node is structurally equivalent to another node.
|
boolean |
SqlNodeList.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlDataTypeSpec.equalsDeep(SqlNode node,
Litmus litmus) |
boolean |
SqlPrefixOperator.validRexOperands(int count,
Litmus litmus) |
boolean |
SqlOperator.validRexOperands(int count,
Litmus litmus)
Returns whether the given operands are valid.
|
boolean |
SqlBinaryOperator.validRexOperands(int count,
Litmus litmus) |
boolean |
SqlPostfixOperator.validRexOperands(int count,
Litmus litmus) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SqlInOperator.validRexOperands(int count,
Litmus litmus) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
RelDecorrelator.allLessThan(Collection<Integer> integers,
int limit,
Litmus ret) |
| Modifier and Type | Field and Description |
|---|---|
static Litmus |
Litmus.IGNORE
Implementation of
Litmus that returns
a status code but does not throw. |
static Litmus |
Litmus.THROW
Implementation of
Litmus that throws
an AssertionError on failure. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.