public abstract class DrillRelOptUtil extends Object
| Constructor and Description |
|---|
DrillRelOptUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areRowTypesCompatible(org.apache.calcite.rel.type.RelDataType rowType1,
org.apache.calcite.rel.type.RelDataType rowType2,
boolean compareNames,
boolean allowSubstring) |
static org.apache.calcite.rel.RelNode |
createRename(org.apache.calcite.rel.RelNode rel,
List<String> fieldNames)
Returns a relational expression which has the same fields as the
underlying expression, but the fields have different names.
|
static org.apache.calcite.rex.RexCall |
findItemOrFlatten(org.apache.calcite.rex.RexNode node,
List<org.apache.calcite.rex.RexNode> projExprs)
Travesal RexNode to find the item/flattern operator.
|
static boolean |
isTrivialProject(org.apache.calcite.rel.core.Project project,
boolean useNamesInIdentityProjCalc) |
static org.apache.calcite.rel.type.RelDataType |
uniqifyFieldName(org.apache.calcite.rel.type.RelDataType rowType,
org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
Returns a rowType having all unique field name.
|
public static boolean areRowTypesCompatible(org.apache.calcite.rel.type.RelDataType rowType1,
org.apache.calcite.rel.type.RelDataType rowType2,
boolean compareNames,
boolean allowSubstring)
public static org.apache.calcite.rel.RelNode createRename(org.apache.calcite.rel.RelNode rel,
List<String> fieldNames)
rel - Relational expressionfieldNames - Field namespublic static boolean isTrivialProject(org.apache.calcite.rel.core.Project project,
boolean useNamesInIdentityProjCalc)
public static org.apache.calcite.rel.type.RelDataType uniqifyFieldName(org.apache.calcite.rel.type.RelDataType rowType,
org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
rowType - : input rowTypetypeFactory - : type factory used to create a new row type.public static org.apache.calcite.rex.RexCall findItemOrFlatten(org.apache.calcite.rex.RexNode node,
List<org.apache.calcite.rex.RexNode> projExprs)
node - : RexNode to searchprojExprs - : the list of project expressions. Empty list means there is No project operator underneath.Copyright © 2017 The Apache Software Foundation. All rights reserved.