public class GenSparkUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GenSparkUtils() |
public static GenSparkUtils getUtils()
public void resetSequenceNumber()
public ReduceWork createReduceWork(GenSparkProcContext context, Operator<?> root, SparkWork sparkWork) throws SemanticException
SemanticExceptionprotected void setupReduceSink(GenSparkProcContext context, ReduceWork reduceWork, ReduceSinkOperator reduceSink)
public MapWork createMapWork(GenSparkProcContext context, Operator<?> root, SparkWork sparkWork, PrunedPartitionList partitions) throws SemanticException
SemanticExceptionpublic MapWork createMapWork(GenSparkProcContext context, Operator<?> root, SparkWork sparkWork, PrunedPartitionList partitions, boolean deferSetup) throws SemanticException
SemanticExceptionprotected void setupMapWork(MapWork mapWork, GenSparkProcContext context, PrunedPartitionList partitions, Operator<? extends OperatorDesc> root, String alias) throws SemanticException
SemanticExceptionpublic void removeUnionOperators(org.apache.hadoop.conf.Configuration conf,
GenSparkProcContext context,
BaseWork work)
throws SemanticException
SemanticExceptionpublic void processFileSink(GenSparkProcContext context, FileSinkOperator fileSink) throws SemanticException
SemanticExceptionpublic static SparkEdgeProperty getEdgeProperty(ReduceSinkOperator reduceSink, ReduceWork reduceWork) throws SemanticException
SemanticExceptionpublic static <T> T getChildOperator(Operator<?> op, Class<T> klazz) throws SemanticException
SemanticExceptionpublic void annotateMapWork(GenSparkProcContext context) throws SemanticException
context - context, containing references to MapWorks and their SMB information.SemanticExceptionpublic int getNextSeqNumber()
Copyright © 2017 The Apache Software Foundation. All rights reserved.