public class PigFilter extends Filter implements PigRel
Filter in
Pig calling convention.PigRel.ImplementorRelNode.Contextdigest, id, rowType, traitSetCONVENTION| Constructor and Description |
|---|
PigFilter(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RexNode condition)
Creates a PigFilter.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
containsOnlyConjunctions(RexNode condition) |
Filter |
copy(RelTraitSet traitSet,
RelNode input,
RexNode condition) |
private java.lang.String |
getLiteralAsString(RexLiteral literal)
TODO: do proper literal to string conversion + escaping
|
private java.lang.String |
getPigFilterStatement(PigRel.Implementor implementor)
Generates Pig Latin filtering statements, for example
|
private java.lang.String |
getSingleFilterCondition(PigRel.Implementor implementor,
RexNode node) |
private java.lang.String |
getSingleFilterCondition(PigRel.Implementor implementor,
java.lang.String op,
RexCall call) |
RelOptTable |
getTable()
Override this method so it looks down the tree to find the table this node
is acting on.
|
void |
implement(PigRel.Implementor implementor)
Converts this node to a Pig Latin statement.
|
accept, computeSelfCost, copy, estimateFilteredRows, estimateFilteredRows, estimateRowCount, explainTerms, getChildExps, getCondition, isValidchildrenAccept, deriveRowType, getInput, getInputs, replaceInputaccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetpublic PigFilter(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexNode condition)
public Filter copy(RelTraitSet traitSet, RelNode input, RexNode condition)
public void implement(PigRel.Implementor implementor)
PigRelpublic RelOptTable getTable()
getTable in interface RelNodegetTable in class AbstractRelNodeprivate java.lang.String getPigFilterStatement(PigRel.Implementor implementor)
table = FILTER table BY score > 2.0;
private java.lang.String getSingleFilterCondition(PigRel.Implementor implementor, RexNode node)
private java.lang.String getSingleFilterCondition(PigRel.Implementor implementor, java.lang.String op, RexCall call)
private boolean containsOnlyConjunctions(RexNode condition)
private java.lang.String getLiteralAsString(RexLiteral literal)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.