Uses of Interface
org.apache.calcite.util.Litmus
-
Packages that use Litmus Package Description org.apache.calcite.adapter.druid Query provider based on a Druid database.org.apache.calcite.materialize Management of materialized query results.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. -
-
Uses of Litmus in org.apache.calcite.adapter.druid
Methods in org.apache.calcite.adapter.druid with parameters of type Litmus Modifier and Type Method Description boolean
DruidQuery. isValid(Litmus litmus, RelNode.Context context)
-
Uses of Litmus in org.apache.calcite.materialize
Methods in org.apache.calcite.materialize with parameters of type Litmus Modifier and Type Method Description private boolean
Lattice. isValid(Litmus litmus)
(package private) boolean
LatticeRootNode. isValid(Litmus litmus)
Validates that nodes form a tree; each node except the first references a predecessor. -
Uses of Litmus in org.apache.calcite.plan
Methods in org.apache.calcite.plan with parameters of type Litmus Modifier and Type Method Description static boolean
RelOptUtil. eq(java.lang.String desc1, RelDataType type1, java.lang.String desc2, RelDataType type2, Litmus litmus)
Returns whether two types are equal using '='.static boolean
RelOptUtil. equal(java.lang.String desc1, RelDataType type1, java.lang.String desc2, RelDataType type2, Litmus litmus)
Returns whether two types are equal usingRelOptUtil.areRowTypesEqual(RelDataType, RelDataType, boolean)
.static boolean
RelOptUtil. equalType(java.lang.String desc0, RelNode rel0, java.lang.String desc1, RelNode rel1, Litmus litmus)
Returns whether two relational expressions have the same row-type.static boolean
SubstitutionVisitor. equalType(java.lang.String desc0, MutableRel rel0, java.lang.String desc1, MutableRel 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 callssucceed()
if a given relational expression does not contain a given correlation. -
Uses of Litmus in org.apache.calcite.plan.volcano
Methods in org.apache.calcite.plan.volcano with parameters of type Litmus Modifier and Type Method 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.protected boolean
VolcanoPlanner. isValid(Litmus litmus)
Checks internal consistency. -
Uses of Litmus in org.apache.calcite.rel
Methods in org.apache.calcite.rel with parameters of type Litmus Modifier and Type Method Description boolean
AbstractRelNode. isValid(Litmus litmus, RelNode.Context context)
boolean
RelNode. isValid(Litmus litmus, RelNode.Context context)
Returns whether this relational expression is valid. -
Uses of Litmus in org.apache.calcite.rel.core
Methods in org.apache.calcite.rel.core with parameters of type Litmus Modifier and Type Method Description boolean
Aggregate. isValid(Litmus litmus, RelNode.Context context)
boolean
Calc. isValid(Litmus litmus, RelNode.Context context)
boolean
Correlate. isValid(Litmus litmus, RelNode.Context context)
boolean
Filter. isValid(Litmus litmus, RelNode.Context context)
boolean
Join. isValid(Litmus litmus, RelNode.Context context)
boolean
Project. isValid(Litmus litmus, RelNode.Context context)
boolean
Window. isValid(Litmus litmus, RelNode.Context context)
private boolean
Aggregate. typeMatchesInferred(AggregateCall aggCall, Litmus litmus)
Returns whether the inferred type of anAggregateCall
matches the type it was given when it was created. -
Uses of Litmus in org.apache.calcite.rex
Fields in org.apache.calcite.rex declared as Litmus Modifier and Type Field Description protected Litmus
RexChecker. litmus
Methods in org.apache.calcite.rex with parameters of type Litmus Modifier and Type Method Description static boolean
RexUtil. compatibleTypes(java.util.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(java.util.List<? extends RexNode> exprs, RelDataType rowType, Litmus litmus)
Returns whether the leading edge of a given array of expressions is whollyRexInputRef
objects with types corresponding to the underlying datatype.static boolean
RexUtil. containNoCommonExprs(java.util.List<RexNode> exprs, Litmus litmus)
Returns whether an array of expressions has any common sub-expressions.static boolean
RexUtil. containNoForwardRefs(java.util.List<RexNode> exprs, RelDataType inputRowType, Litmus litmus)
Returns whether an array of expressions contains no forward references.(package private) static boolean
RexUtil. containNoNonTrivialAggs(java.util.List<RexNode> exprs, Litmus litmus)
Returns whether an array of exp contains no aggregate function calls whose arguments are notRexInputRef
s.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(java.lang.Object o, Litmus litmus)
Returns whether a value is valid as a constant value, using the same criteria asRexLiteral.valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean)
.Constructors in org.apache.calcite.rex with parameters of type Litmus Constructor Description Checker(RelDataType inputRowType, java.util.List<RelDataType> internalExprTypeList, RelNode.Context context, Litmus litmus)
Creates a Checker.RexChecker(java.util.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. -
Uses of Litmus in org.apache.calcite.sql
Methods in org.apache.calcite.sql with parameters of type Litmus Modifier and Type Method Description static boolean
SqlNode. equalDeep(java.util.List<SqlNode> operands0, java.util.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 (usingSqlNode.equalsDeep(SqlNode, Litmus)
) or are both null.boolean
SqlCall. equalsDeep(SqlNode node, Litmus litmus)
boolean
SqlDataTypeSpec. equalsDeep(SqlNode node, Litmus litmus)
boolean
SqlDynamicParam. equalsDeep(SqlNode node, Litmus litmus)
boolean
SqlIdentifier. equalsDeep(SqlNode node, Litmus litmus)
boolean
SqlIntervalQualifier. equalsDeep(SqlNode node, Litmus litmus)
boolean
SqlLiteral. 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
SqlWindow. equalsDeep(SqlNode node, Litmus litmus)
Overridden method to specifically check only the right subtree of a window definition.boolean
SqlBinaryOperator. validRexOperands(int count, Litmus litmus)
boolean
SqlOperator. validRexOperands(int count, Litmus litmus)
Returns whether the given operands are valid.boolean
SqlPostfixOperator. validRexOperands(int count, Litmus litmus)
boolean
SqlPrefixOperator. validRexOperands(int count, Litmus litmus)
-
Uses of Litmus in org.apache.calcite.sql.fun
Methods in org.apache.calcite.sql.fun with parameters of type Litmus Modifier and Type Method Description boolean
SqlDotOperator. validRexOperands(int count, Litmus litmus)
boolean
SqlInOperator. validRexOperands(int count, Litmus litmus)
-
Uses of Litmus in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel with parameters of type Litmus Modifier and Type Method Description (package private) static boolean
RelDecorrelator. allLessThan(java.util.Collection<java.lang.Integer> integers, int limit, Litmus ret)
-
Uses of Litmus in org.apache.calcite.util
Fields in org.apache.calcite.util declared as Litmus Modifier and Type Field Description static Litmus
Litmus. IGNORE
Implementation ofLitmus
that returns a status code but does not throw.static Litmus
Litmus. THROW
Implementation ofLitmus
that throws anAssertionError
on failure.
-