use of org.apache.hadoop.hive.ql.plan.TezEdgeProperty in project hive by apache.
the class GenTezWork method getFollowingWorkIndex.
private int getFollowingWorkIndex(TezWork tezWork, UnionWork unionWork, ReduceSinkOperator rs) throws SemanticException {
int index = 0;
for (BaseWork baseWork : tezWork.getChildren(unionWork)) {
TezEdgeProperty edgeProperty = tezWork.getEdgeProperty(unionWork, baseWork);
if (edgeProperty.getEdgeType() != TezEdgeProperty.EdgeType.CONTAINS) {
return index;
}
index++;
}
throw new SemanticException("Following work not found for the reduce sink: " + rs.getName());
}
use of org.apache.hadoop.hive.ql.plan.TezEdgeProperty in project hive by apache.
the class GenTezWork method connectUnionWorkWithWork.
private void connectUnionWorkWithWork(UnionWork unionWork, BaseWork work, TezWork tezWork, GenTezProcContext context) {
LOG.debug("Connecting union work (" + unionWork + ") with work (" + work + ")");
TezEdgeProperty edgeProp = new TezEdgeProperty(EdgeType.CONTAINS);
tezWork.connect(unionWork, work, edgeProp);
unionWork.addUnionOperators(context.currentUnionOperators);
context.workWithUnionOperators.add(work);
}
Aggregations