public final class BSPPlan extends Plan
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BSPPlan.BSPop
The BSP evaluator
|
Plan.MRContainerKeyComparator
cache, conf, counter_container, counter_key, max_input_files, temporary_paths, value_container
Constructor and Description |
---|
BSPPlan() |
Modifier and Type | Method and Description |
---|---|
static MRData |
BSP(int[] source_nums,
Tree superstep,
Tree init_state,
boolean orderp,
DataSet source)
Evaluate a BSP operation that returns a DataSet
|
static MRData |
BSPaggregate(int source_num,
Tree superstep,
Tree init_state,
Tree acc_fnc,
Tree zero,
DataSet source)
Evaluate a BSP operation that aggregates the results
|
(package private) static org.apache.hadoop.conf.Configuration |
getConfiguration(org.apache.hama.bsp.BSPJob job) |
static void |
setupSplits(org.apache.hama.bsp.BSPJob job,
DataSet ds)
set Hama's min split size and number of BSP tasks (doesn't work with Hama 0.6.0)
|
, binarySource, binarySource, clean, collect, collect, distribute_compiled_arguments, fileCache, functional_argument, generator, generator, getCache, merge, merge, new_path, parsedSource, parsedSource, print_stream, setCache, size
static final org.apache.hadoop.conf.Configuration getConfiguration(org.apache.hama.bsp.BSPJob job)
public static void setupSplits(org.apache.hama.bsp.BSPJob job, DataSet ds) throws IOException
IOException
public static final MRData BSP(int[] source_nums, Tree superstep, Tree init_state, boolean orderp, DataSet source) throws Exception
source_nums
- output tagssuperstep
- the superstep functioninit_state
- initial stateorderp
- do we need to order the result?source
- input datasetException
public static final MRData BSPaggregate(int source_num, Tree superstep, Tree init_state, Tree acc_fnc, Tree zero, DataSet source) throws Exception
source_num
- output tagsuperstep
- the superstep functioninit_state
- initial stateacc_fnc
- accumulator functionzero
- zero value for the accumulatorsource
- input datasetException
Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.