org.apache.hadoop.hive.ql.udf.ptf
Class MatchPath.MatchPathResolver
java.lang.Object
org.apache.hadoop.hive.ql.udf.ptf.TableFunctionResolver
org.apache.hadoop.hive.ql.udf.ptf.MatchPath.MatchPathResolver
- Enclosing class:
- MatchPath
public static class MatchPath.MatchPathResolver
- extends TableFunctionResolver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchPath.MatchPathResolver
public MatchPath.MatchPathResolver()
createEvaluator
protected TableFunctionEvaluator createEvaluator(PTFDesc ptfDesc,
PTFDesc.PartitionedTableFunctionDef tDef)
- Specified by:
createEvaluator
in class TableFunctionResolver
setupOutputOI
public void setupOutputOI()
throws SemanticException
- 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.
- finally there should be a String.
- convert pattern into a NNode chain.
- convert symbol args into a Symbol Map.
- parse selectList into SelectList struct. The inputOI used to translate
these expressions should be based on the
columns in the Input, the 'path.attr'
- 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