/** * forwardUDTFOutput is typically called indirectly by the GenericUDTF when * the GenericUDTF has generated output rows that should be passed on to the * next operator(s) in the DAG. * * @param o * @throws HiveException */ public void forwardUDTFOutput(Object o) throws HiveException { // Since the output of the UDTF is a struct, we can just forward that forward(o, outputObjInspector); }
@Override public void collect(Object input) throws HiveException { op.forwardUDTFOutput(input); counter++; }
@Override public String getName() { return UDTFOperator.getOperatorName(); }
UDTFOperator uop = (UDTFOperator) nd; Operator<? extends OperatorDesc> parent = uop.getParentOperators().get(0); LOG.debug("[0] STATS-" + uop.toString() + ": " + st.extendedToString()); uop.setStatistics(st);
@Override public boolean equals(UDTFOperator op1, UDTFOperator op2) { Preconditions.checkNotNull(op1); Preconditions.checkNotNull(op2); UDTFDesc desc1 = op1.getConf(); UDTFDesc desc2 = op2.getConf(); if (compareString(desc1.getUDTFName(), desc2.getUDTFName()) && compareString(desc1.isOuterLateralView(), desc2.isOuterLateralView())) { return true; } else { return false; } } }
@Override public String getName() { return UDTFOperator.getOperatorName(); }
@Override public void collect(Object input) throws HiveException { op.forwardUDTFOutput(input); counter++; }
/** * forwardUDTFOutput is typically called indirectly by the GenericUDTF when * the GenericUDTF has generated output rows that should be passed on to the * next operator(s) in the DAG. * * @param o * @throws HiveException */ public void forwardUDTFOutput(Object o) throws HiveException { // Since the output of the UDTF is a struct, we can just forward that forward(o, outputObjInspector); }
opRules.put(new RuleRegExp("RS", ReduceSinkOperator.getOperatorName() + "%"), StatsRulesProcFactory.getReduceSinkRule()); opRules.put(new RuleRegExp("UDTF", UDTFOperator.getOperatorName() + "%"), StatsRulesProcFactory.getUDTFRule());
@Override public void collect(Object input) throws HiveException { op.forwardUDTFOutput(input); counter++; }
/** * forwardUDTFOutput is typically called indirectly by the GenericUDTF when * the GenericUDTF has generated output rows that should be passed on to the * next operator(s) in the DAG. * * @param o * @throws HiveException */ public void forwardUDTFOutput(Object o) throws HiveException { // Since the output of the UDTF is a struct, we can just forward that forward(o, outputObjInspector); }
OpProcFactory.getLIMProc()); opRules.put(new RuleRegExp("R7", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getUDTFProc()); opRules.put(new RuleRegExp("R8",
@Override public void collect(Object input) throws HiveException { op.forwardUDTFOutput(input); }
/** * forwardUDTFOutput is typically called indirectly by the GenericUDTF when * the GenericUDTF has generated output rows that should be passed on to the * next operator(s) in the DAG. * * @param o * @throws HiveException */ public void forwardUDTFOutput(Object o) throws HiveException { // Since the output of the UDTF is a struct, we can just forward that forward(o, outputObjInspector); }
OpProcFactory.getLIMProc()); opRules.put(new RuleRegExp("R7", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getUDTFProc()); opRules.put(new RuleRegExp("R8",
OpProcFactory.getLIMProc()); opRules.put(new RuleRegExp("R7", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getUDTFProc()); opRules.put(new RuleRegExp("R8",
OpProcFactory.getLIMProc()); opRules.put(new RuleRegExp("R7", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getUDTFProc()); opRules.put(new RuleRegExp("R8",
opRules.put(new RuleRegExp("R2", ScriptOperator.getOperatorName() + "%"), OpProcFactory.getTransformProc()); opRules.put(new RuleRegExp("R3", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getTransformProc()); opRules.put(new RuleRegExp("R4", SelectOperator.getOperatorName() + "%"),
opRules.put(new RuleRegExp("R2", ScriptOperator.getOperatorName() + "%"), OpProcFactory.getTransformProc()); opRules.put(new RuleRegExp("R3", UDTFOperator.getOperatorName() + "%"), OpProcFactory.getTransformProc()); opRules.put(new RuleRegExp("R4", SelectOperator.getOperatorName() + "%"),
@Override public String getName() { return getOperatorName(); }