Java Code Examples for org.apache.calcite.rel.RelNode#Context
The following examples show how to use
org.apache.calcite.rel.RelNode#Context .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RexChecker.java From Bats with Apache License 2.0 | 3 votes |
/** * Creates a RexChecker with a given set of input fields. * * <p>If <code>fail</code> is true, the checker will throw an * {@link AssertionError} if an invalid node is found and assertions are * enabled. * * <p>Otherwise, each method returns whether its part of the tree is valid. * * @param inputTypeList Input row type * @param context Context of the enclosing {@link RelNode}, or null * @param litmus What to do if an error is detected */ public RexChecker(List<RelDataType> inputTypeList, RelNode.Context context, Litmus litmus) { super(true); this.inputTypeList = inputTypeList; this.context = context; this.litmus = litmus; }
Example 2
Source File: RexChecker.java From calcite with Apache License 2.0 | 3 votes |
/** * Creates a RexChecker with a given set of input fields. * * <p>If <code>fail</code> is true, the checker will throw an * {@link AssertionError} if an invalid node is found and assertions are * enabled. * * <p>Otherwise, each method returns whether its part of the tree is valid. * * @param inputTypeList Input row type * @param context Context of the enclosing {@link RelNode}, or null * @param litmus What to do if an error is detected */ public RexChecker(List<RelDataType> inputTypeList, RelNode.Context context, Litmus litmus) { super(true); this.inputTypeList = inputTypeList; this.context = context; this.litmus = litmus; }
Example 3
Source File: RexProgram.java From calcite with Apache License 2.0 | 3 votes |
/** * Creates a Checker. * * @param inputRowType Types of the input fields * @param internalExprTypeList Types of the internal expressions * @param context Context of the enclosing {@link RelNode}, * or null * @param litmus Whether to fail */ Checker(RelDataType inputRowType, List<RelDataType> internalExprTypeList, RelNode.Context context, Litmus litmus) { super(inputRowType, context, litmus); this.internalExprTypeList = internalExprTypeList; }
Example 4
Source File: RexChecker.java From Bats with Apache License 2.0 | 2 votes |
/** * Creates a RexChecker with a given input row type. * * <p>If <code>fail</code> is true, the checker will throw an * {@link AssertionError} if an invalid node is found and assertions are * enabled. * * <p>Otherwise, each method returns whether its part of the tree is valid. * * @param inputRowType Input row type * @param context Context of the enclosing {@link RelNode}, or null * @param litmus What to do if an invalid node is detected */ public RexChecker(final RelDataType inputRowType, RelNode.Context context, Litmus litmus) { this(RelOptUtil.getFieldTypeList(inputRowType), context, litmus); }
Example 5
Source File: RexProgram.java From Bats with Apache License 2.0 | 2 votes |
/** * Creates a Checker. * * @param inputRowType Types of the input fields * @param internalExprTypeList Types of the internal expressions * @param context Context of the enclosing {@link RelNode}, * or null * @param litmus Whether to fail */ Checker(RelDataType inputRowType, List<RelDataType> internalExprTypeList, RelNode.Context context, Litmus litmus) { super(inputRowType, context, litmus); this.internalExprTypeList = internalExprTypeList; }
Example 6
Source File: RexChecker.java From calcite with Apache License 2.0 | 2 votes |
/** * Creates a RexChecker with a given input row type. * * <p>If <code>fail</code> is true, the checker will throw an * {@link AssertionError} if an invalid node is found and assertions are * enabled. * * <p>Otherwise, each method returns whether its part of the tree is valid. * * @param inputRowType Input row type * @param context Context of the enclosing {@link RelNode}, or null * @param litmus What to do if an invalid node is detected */ public RexChecker(final RelDataType inputRowType, RelNode.Context context, Litmus litmus) { this(RelOptUtil.getFieldTypeList(inputRowType), context, litmus); }