public void setReporter(Reporter rep) { reporter = rep; for (Operator<? extends OperatorDesc> op : childOperators) { op.setReporter(rep); } }
public void setReporter(Reporter rep) { reporter = rep; for (Operator<? extends OperatorDesc> op : childOperators) { op.setReporter(rep); } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; LOG.debug("Operator Initialized: {}", this); if (CollectionUtils.isEmpty(childOperators)) { return; } LOG.debug("Initializing Children: {}", this); for (int i = 0; i < childOperatorsArray.length; i++) { childOperatorsArray[i].initialize(hconf, outputObjInspector, childOperatorsTag[i]); if (reporter != null) { childOperatorsArray[i].setReporter(reporter); } } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ @Override protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; if (LOG.isInfoEnabled()) { LOG.info("Operator " + id + " " + getName() + " initialized"); } if (childOperators == null || childOperators.isEmpty()) { return; } if (LOG.isInfoEnabled()) { LOG.info("Initializing children of " + id + " " + getName()); } childOperatorsArray[0].initialize(hconf, outputObjectInspectors); if (reporter != null) { childOperatorsArray[0].setReporter(reporter); } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; if (isLogDebugEnabled) { LOG.debug("Operator " + id + " " + getName() + " initialized"); } if (childOperators == null || childOperators.isEmpty()) { return; } if (isLogDebugEnabled) { LOG.debug("Initializing children of " + id + " " + getName()); } for (int i = 0; i < childOperatorsArray.length; i++) { childOperatorsArray[i].initialize(hconf, outputObjInspector, childOperatorsTag[i]); if (reporter != null) { childOperatorsArray[i].setReporter(reporter); } } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ @Override protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; if (isLogInfoEnabled) { LOG.info("Operator " + id + " " + getName() + " initialized"); } if (childOperators == null || childOperators.isEmpty()) { return; } if (isLogInfoEnabled) { LOG.info("Initializing children of " + id + " " + getName()); } childOperatorsArray[0].initialize(hconf, outputObjectInspectors); if (reporter != null) { childOperatorsArray[0].setReporter(reporter); } }
childOperatorsArray[i].setReporter(reporter); childOperatorsArray[i].setReporter(reporter);
childOperatorsArray[i].setReporter(reporter); childOperatorsArray[i].setReporter(reporter);
mergeOp.setReporter(reporter); MapredContext.get().setReporter(reporter); } catch (Throwable e) {
mergeOp.setReporter(reporter); MapredContext.get().setReporter(reporter); } catch (Throwable e) {
reducer.setReporter(rp); MapredContext.get().setReporter(reporter);
reducer.passExecContext(execContext); reducer.setReporter(rp); OperatorUtils.setChildrenCollector( Arrays.<Operator<? extends OperatorDesc>>asList(reducer), output);
reducer.setReporter(reporter); MapredContext.get().setReporter(reporter);
reducer.setReporter(reporter); MapredContext.get().setReporter(reporter);
reducer.setReporter(rp); MapredContext.get().setReporter(reporter);
reducer.passExecContext(execContext); reducer.setReporter(rp); OperatorUtils.setChildrenCollector( Arrays.<Operator<? extends OperatorDesc>>asList(reducer), output);
public void setReporter(Reporter rep) { reporter = rep; // the collector is same across all operators if (childOperators == null) { return; } for (Operator<? extends Serializable> op : childOperators) { op.setReporter(rep); } }
public void setReporter(Reporter rep) { reporter = rep; for (Operator<? extends OperatorDesc> op : childOperators) { op.setReporter(rep); } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; LOG.info("Operator " + id + " " + getName() + " initialized"); if (childOperators == null) { return; } LOG.info("Initializing children of " + id + " " + getName()); for (int i = 0; i < childOperatorsArray.length; i++) { childOperatorsArray[i].initialize(hconf, outputObjInspector, childOperatorsTag[i]); if (reporter != null) { childOperatorsArray[i].setReporter(reporter); } } }
/** * Calls initialize on each of the children with outputObjetInspector as the * output row format. */ @Override protected void initializeChildren(Configuration hconf) throws HiveException { state = State.INIT; if (isLogInfoEnabled) { LOG.info("Operator " + id + " " + getName() + " initialized"); } if (childOperators == null || childOperators.isEmpty()) { return; } if (isLogInfoEnabled) { LOG.info("Initializing children of " + id + " " + getName()); } childOperatorsArray[0].initialize(hconf, outputObjectInspectors); if (reporter != null) { childOperatorsArray[0].setReporter(reporter); } }