org.apache.hadoop.hive.ql.parse
Class PTFTranslator
java.lang.Object
org.apache.hadoop.hive.ql.parse.PTFTranslator
public class PTFTranslator
- extends Object
Method Summary |
PTFExpressionDef |
buildExpressionDef(ShapeDetails inpShape,
ASTNode arg)
|
static ArrayList<PTFInvocationSpec> |
componentize(PTFInvocationSpec ptfInvocation)
|
static ASTNode |
getASTNode(ColumnInfo cInfo,
RowResolver rr)
|
static StructObjectInspector |
getStandardStructOI(RowResolver rr)
For each column on the input RR, construct a StructField for it
OI is constructed using the list of input column names and
their corresponding OIs. |
PTFDesc |
translate(PTFInvocationSpec qSpec,
SemanticAnalyzer semAly,
HiveConf hCfg,
RowResolver inputRR,
org.apache.hadoop.hive.ql.parse.UnparseTranslator unparseT)
|
PTFDesc |
translate(WindowingSpec wdwSpec,
SemanticAnalyzer semAly,
HiveConf hCfg,
RowResolver inputRR,
org.apache.hadoop.hive.ql.parse.UnparseTranslator unparseT)
|
static void |
validateNoLeadLagInValueBoundarySpec(ASTNode node)
|
static void |
visit(Object t,
org.antlr.runtime.tree.TreeWizard.ContextVisitor visitor)
|
PTFTranslator
public PTFTranslator()
translate
public PTFDesc translate(PTFInvocationSpec qSpec,
SemanticAnalyzer semAly,
HiveConf hCfg,
RowResolver inputRR,
org.apache.hadoop.hive.ql.parse.UnparseTranslator unparseT)
throws SemanticException
- Throws:
SemanticException
translate
public PTFDesc translate(WindowingSpec wdwSpec,
SemanticAnalyzer semAly,
HiveConf hCfg,
RowResolver inputRR,
org.apache.hadoop.hive.ql.parse.UnparseTranslator unparseT)
throws SemanticException
- Throws:
SemanticException
buildExpressionDef
public PTFExpressionDef buildExpressionDef(ShapeDetails inpShape,
ASTNode arg)
throws HiveException
- Throws:
HiveException
getStandardStructOI
public static StructObjectInspector getStandardStructOI(RowResolver rr)
- For each column on the input RR, construct a StructField for it
OI is constructed using the list of input column names and
their corresponding OIs.
- Parameters:
rr
-
- Returns:
getASTNode
public static ASTNode getASTNode(ColumnInfo cInfo,
RowResolver rr)
throws SemanticException
- Throws:
SemanticException
visit
public static void visit(Object t,
org.antlr.runtime.tree.TreeWizard.ContextVisitor visitor)
componentize
public static ArrayList<PTFInvocationSpec> componentize(PTFInvocationSpec ptfInvocation)
throws SemanticException
- Throws:
SemanticException
validateNoLeadLagInValueBoundarySpec
public static void validateNoLeadLagInValueBoundarySpec(ASTNode node)
throws SemanticException
- Throws:
SemanticException
Copyright © 2014 The Apache Software Foundation. All rights reserved.