public static String genMapJoinOpAndLocalWork(MapredWork newWork, JoinOperator op, int mapJoinPos)
throws SemanticException {
try {
LinkedHashMap<Operator<? extends Serializable>, OpParseContext> opParseCtxMap = newWork
.getOpParseCtxMap();
QBJoinTree newJoinTree = newWork.getJoinTree();
MapJoinOperator newMapJoinOp = MapJoinProcessor.convertMapJoin(opParseCtxMap, op,
newJoinTree, mapJoinPos, true);
String bigTableAlias = MapJoinProcessor
.genMapJoinLocalWork(newWork, newMapJoinOp, mapJoinPos);
newWork.setOpParseCtxMap(null);
newWork.setJoinTree(null);
return bigTableAlias;
} catch (Exception e) {
e.printStackTrace();
throw new SemanticException("Generate New MapJoin Opertor Exeception " + e.getMessage());
}
}