org.apache.hadoop.hive.ql.udf.ptf
Class MatchPath.MatchPathResolver

java.lang.Object
  extended by org.apache.hadoop.hive.ql.udf.ptf.TableFunctionResolver
      extended by org.apache.hadoop.hive.ql.udf.ptf.MatchPath.MatchPathResolver
Enclosing class:
MatchPath

public static class MatchPath.MatchPathResolver
extends TableFunctionResolver


Constructor Summary
MatchPath.MatchPathResolver()
           
 
Method Summary
protected  TableFunctionEvaluator createEvaluator(PTFDesc ptfDesc, PTFDesc.PartitionedTableFunctionDef tDef)
           
 ArrayList<String> getOutputColumnNames()
           
 void initializeOutputOI()
          This method is invoked during runtime(during deserialization of theQueryDef).
 void setupOutputOI()
           check structure of Arguments: First arg should be a String then there should be an even number of Arguments: String, expression; expression should be Convertible to Boolean.
 boolean transformsRawInput()
           
 
Methods inherited from class org.apache.hadoop.hive.ql.udf.ptf.TableFunctionResolver
carryForwardNames, getEvaluator, getPtfDesc, getRawInputColumnNames, initialize, initialize, initializeRawInputOI, setOutputOI, setRawInputOI, setupRawInputOI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchPath.MatchPathResolver

public MatchPath.MatchPathResolver()
Method Detail

createEvaluator

protected TableFunctionEvaluator createEvaluator(PTFDesc ptfDesc,
                                                 PTFDesc.PartitionedTableFunctionDef tDef)
Specified by:
createEvaluator in class TableFunctionResolver

setupOutputOI

public void setupOutputOI()
                   throws SemanticException

Specified by:
setupOutputOI in class TableFunctionResolver
Throws:
SemanticException

transformsRawInput

public boolean transformsRawInput()
Specified by:
transformsRawInput in class TableFunctionResolver

initializeOutputOI

public void initializeOutputOI()
                        throws HiveException
Description copied from class: TableFunctionResolver
This method is invoked during runtime(during deserialization of theQueryDef). At this point the TableFunction can assume that the Expression Nodes exist for all the Def (ArgDef, ColumnDef, WindowDef..). It is the responsibility of the TableFunction to construct the evaluators and setup the OI.

Specified by:
initializeOutputOI in class TableFunctionResolver
Throws:
HiveException

getOutputColumnNames

public ArrayList<String> getOutputColumnNames()
Specified by:
getOutputColumnNames in class TableFunctionResolver


Copyright © 2012 The Apache Software Foundation