public class GMR extends Object
Modifier and Type | Method and Description |
---|---|
static JobReturn |
runJob(MRJobInstruction inst,
String[] inputs,
InputInfo[] inputInfos,
long[] rlens,
long[] clens,
int[] brlens,
int[] bclens,
boolean[] partitioned,
org.apache.sysml.runtime.controlprogram.ParForProgramBlock.PDataPartitionFormat[] pformats,
int[] psizes,
String recordReaderInstruction,
String instructionsInMapper,
String aggInstructionsInReducer,
String otherInstructionsInReducer,
int numReducers,
int replication,
boolean jvmReuse,
byte[] resultIndexes,
String dimsUnknownFilePrefix,
String[] outputs,
OutputInfo[] outputInfos)
Execute job.
|
public static JobReturn runJob(MRJobInstruction inst, String[] inputs, InputInfo[] inputInfos, long[] rlens, long[] clens, int[] brlens, int[] bclens, boolean[] partitioned, org.apache.sysml.runtime.controlprogram.ParForProgramBlock.PDataPartitionFormat[] pformats, int[] psizes, String recordReaderInstruction, String instructionsInMapper, String aggInstructionsInReducer, String otherInstructionsInReducer, int numReducers, int replication, boolean jvmReuse, byte[] resultIndexes, String dimsUnknownFilePrefix, String[] outputs, OutputInfo[] outputInfos) throws Exception
inst
- MR job instructioninputs
- input matrices, the inputs are indexed by 0, 1, 2, .. based on the position in this stringinputInfos
- the input format information for the input matricesrlens
- array of number of rowsclens
- array of number of columnsbrlens
- array of number of rows in blockbclens
- array of number of columns in blockpartitioned
- boolean array of partitioned statuspformats
- array of data partition formatspsizes
- does nothingrecordReaderInstruction
- record reader instructioninstructionsInMapper
- in Mapper, the set of unary operations that need to be performed on each input matrixaggInstructionsInReducer
- in Reducer, right after sorting, the set of aggreagte operations
that need to be performed on each input matrixotherInstructionsInReducer
- the mixed operations that need to be performed on matrices after the aggregate operationsnumReducers
- the number of reducersreplication
- the replication factor for the outputjvmReuse
- if true, reuse JVMresultIndexes
- the indexes of the result matrices that needs to be outputteddimsUnknownFilePrefix
- file path prefix when dimensions unknownoutputs
- the names for the output directories, one for each result indexoutputInfos
- output format information for the output matricesException
- if Exception occursCopyright © 2018 The Apache Software Foundation. All rights reserved.