Java Code Examples for org.apache.calcite.rel.RelWriter#input()
The following examples show how to use
org.apache.calcite.rel.RelWriter#input() .
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: MultiJoin.java From Bats with Apache License 2.0 | 5 votes |
public RelWriter explainTerms(RelWriter pw) { List<String> joinTypeNames = new ArrayList<>(); List<String> outerJoinConds = new ArrayList<>(); List<String> projFieldObjects = new ArrayList<>(); for (int i = 0; i < inputs.size(); i++) { joinTypeNames.add(joinTypes.get(i).name()); if (outerJoinConditions.get(i) == null) { outerJoinConds.add("NULL"); } else { outerJoinConds.add(outerJoinConditions.get(i).toString()); } if (projFields.get(i) == null) { projFieldObjects.add("ALL"); } else { projFieldObjects.add(projFields.get(i).toString()); } } super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } return pw.item("joinFilter", joinFilter) .item("isFullOuterJoin", isFullOuterJoin) .item("joinTypes", joinTypeNames) .item("outerJoinConditions", outerJoinConds) .item("projFields", projFieldObjects) .itemIf("postJoinFilter", postJoinFilter, postJoinFilter != null); }
Example 2
Source File: SetOp.java From Bats with Apache License 2.0 | 5 votes |
@Override public RelWriter explainTerms(RelWriter pw) { super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } return pw.item("all", all); }
Example 3
Source File: TableFunctionScan.java From Bats with Apache License 2.0 | 5 votes |
public RelWriter explainTerms(RelWriter pw) { super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } pw.item("invocation", rexCall) .item("rowType", rowType); if (elementType != null) { pw.item("elementType", elementType); } return pw; }
Example 4
Source File: MultiJoin.java From calcite with Apache License 2.0 | 5 votes |
public RelWriter explainTerms(RelWriter pw) { List<String> joinTypeNames = new ArrayList<>(); List<String> outerJoinConds = new ArrayList<>(); List<String> projFieldObjects = new ArrayList<>(); for (int i = 0; i < inputs.size(); i++) { joinTypeNames.add(joinTypes.get(i).name()); if (outerJoinConditions.get(i) == null) { outerJoinConds.add("NULL"); } else { outerJoinConds.add(outerJoinConditions.get(i).toString()); } if (projFields.get(i) == null) { projFieldObjects.add("ALL"); } else { projFieldObjects.add(projFields.get(i).toString()); } } super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } return pw.item("joinFilter", joinFilter) .item("isFullOuterJoin", isFullOuterJoin) .item("joinTypes", joinTypeNames) .item("outerJoinConditions", outerJoinConds) .item("projFields", projFieldObjects) .itemIf("postJoinFilter", postJoinFilter, postJoinFilter != null); }
Example 5
Source File: SetOp.java From calcite with Apache License 2.0 | 5 votes |
@Override public RelWriter explainTerms(RelWriter pw) { super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } return pw.item("all", all); }
Example 6
Source File: TableFunctionScan.java From calcite with Apache License 2.0 | 5 votes |
public RelWriter explainTerms(RelWriter pw) { super.explainTerms(pw); for (Ord<RelNode> ord : Ord.zip(inputs)) { pw.input("input#" + ord.i, ord.e); } pw.item("invocation", rexCall) .item("rowType", rowType); if (elementType != null) { pw.item("elementType", elementType); } return pw; }