org.apache.pig.newplan.logical.rules
Class LogicalExpressionSimplifier

java.lang.Object
  extended by org.apache.pig.newplan.optimizer.Rule
      extended by org.apache.pig.newplan.logical.rules.LogicalExpressionSimplifier

public class LogicalExpressionSimplifier
extends Rule

A FILTER logical expression simplifier


Nested Class Summary
static class LogicalExpressionSimplifier.LogicalExpressionSimplifierTransformer
           
 
Field Summary
 
Fields inherited from class org.apache.pig.newplan.optimizer.Rule
currentPlan, log, name, pattern
 
Constructor Summary
LogicalExpressionSimplifier(String n)
           
 
Method Summary
protected  OperatorPlan buildPattern()
          Build the pattern that this rule will look for
 Transformer getNewTransformer()
          Get the transformer for this rule.
 
Methods inherited from class org.apache.pig.newplan.optimizer.Rule
getName, getPattern, isMandatory, isSkipListener, match, setSkipListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicalExpressionSimplifier

public LogicalExpressionSimplifier(String n)
Method Detail

getNewTransformer

public Transformer getNewTransformer()
Description copied from class: Rule
Get the transformer for this rule. Abstract because the rule may want to choose how to instantiate the transformer. This should never return a cached transformer, it should always return a fresh one with no state.

Specified by:
getNewTransformer in class Rule
Returns:
Transformer to use with this rule

buildPattern

protected OperatorPlan buildPattern()
Description copied from class: Rule
Build the pattern that this rule will look for

Specified by:
buildPattern in class Rule
Returns:
the pattern to look for by this rule


Copyright © ${year} The Apache Software Foundation