org.apache.hadoop.hive.ql.lib
Interface Rule

All Known Implementing Classes:
RuleExactMatch, RuleRegExp

public interface Rule

Rule interface for Operators Used in operator dispatching to dispatch process/visitor functions for operators.


Method Summary
 int cost(Stack<Node> stack)
           
 String getName()
           
 

Method Detail

cost

int cost(Stack<Node> stack)
         throws SemanticException
Returns:
the cost of the rule - the lower the cost, the better the rule matches
Throws:
SemanticException

getName

String getName()
Returns:
the name of the rule - may be useful for debugging


Copyright © 2014 The Apache Software Foundation. All rights reserved.