public class SplunkPushDownRule extends RelOptRule
| Modifier and Type | Field and Description |
|---|---|
static SplunkPushDownRule |
FILTER |
static SplunkPushDownRule |
FILTER_ON_PROJECT |
private static org.slf4j.Logger |
LOGGER |
static SplunkPushDownRule |
PROJECT |
static SplunkPushDownRule |
PROJECT_ON_FILTER |
private static Set<SqlKind> |
SUPPORTED_OPS |
description, operands, relBuilderFactory| Modifier | Constructor and Description |
|---|---|
protected |
SplunkPushDownRule(RelOptRuleOperand rule,
String id)
Creates a SplunkPushDownRule.
|
any, convert, convert, convertList, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, operand, operand, operand, operand, operand, some, toString, unorderedprivate static final org.slf4j.Logger LOGGER
public static final SplunkPushDownRule PROJECT_ON_FILTER
public static final SplunkPushDownRule FILTER_ON_PROJECT
public static final SplunkPushDownRule FILTER
public static final SplunkPushDownRule PROJECT
protected SplunkPushDownRule(RelOptRuleOperand rule, String id)
public void onMatch(RelOptRuleCall call)
onMatch in class RelOptRuleprotected RelNode appendSearchString(String toAppend, SplunkTableScan splunkRel, LogicalProject topProj, LogicalProject bottomProj, RelDataType topRow, RelDataType bottomRow)
toAppend - Search string to appendsplunkRel - Relational expressiontopProj - Top projectionbottomProj - Bottom projectionprivate static RelNode addProjectionRule(LogicalProject proj, RelNode rel)
private boolean getFilter(SqlOperator op, List<RexNode> operands, StringBuilder s, List<String> fieldNames)
private boolean asd(boolean like,
List<RexNode> operands,
StringBuilder s,
List<String> fieldNames,
int i)
private boolean valid(SqlKind kind)
private String toString(SqlOperator op)
private String toString(boolean like, RexLiteral literal)
protected void transformToFarragoUdxRel(RelOptRuleCall call, SplunkTableScan splunkRel, LogicalFilter filter, LogicalProject topProj, LogicalProject bottomProj)
public static String getFieldsString(RelDataType row)
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.