public static class DruidRules.DruidFilterRule extends RelOptRule
Filter into a DruidQuery.description, operands, relBuilderFactory| Constructor and Description |
|---|
DruidFilterRule(RelBuilderFactory relBuilderFactory)
Creates a DruidFilterRule.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onMatch(RelOptRuleCall call) |
private static org.apache.commons.lang3.tuple.Triple<List<RexNode>,List<RexNode>,List<RexNode>> |
splitFilters(RexBuilder rexBuilder,
DruidQuery input,
List<RexNode> validPreds,
List<RexNode> nonValidPreds,
int timestampFieldIdx)
Given a list of conditions that contain Druid valid operations and
a list that contains those that contain any non-supported operation,
it outputs a triple with three different categories:
1-l) condition filters on the timestamp column,
2-m) condition filters that can be pushed to Druid,
3-r) condition filters that cannot be pushed to Druid.
|
any, convert, convert, convertList, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, some, toString, unorderedpublic DruidFilterRule(RelBuilderFactory relBuilderFactory)
relBuilderFactory - Builder for relational expressionspublic void onMatch(RelOptRuleCall call)
onMatch in class RelOptRuleprivate static org.apache.commons.lang3.tuple.Triple<List<RexNode>,List<RexNode>,List<RexNode>> splitFilters(RexBuilder rexBuilder, DruidQuery input, List<RexNode> validPreds, List<RexNode> nonValidPreds, int timestampFieldIdx)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.