public class CSVReblockMR extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CSVReblockMR.AssignRowIDMRReturn |
static class |
CSVReblockMR.BlockRow |
static class |
CSVReblockMR.OffsetCount |
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.fs.PathFilter |
hiddenFileFilter |
static String |
NUM_COLS_IN_MATRIX |
static String |
NUM_ROWS_IN_MATRIX |
static String |
ROWID_FILE_NAME |
static String |
SMALLEST_FILE_NAME_PER_INPUT |
Modifier and Type | Method and Description |
---|---|
static String |
findSmallestFile(org.apache.hadoop.mapred.JobConf job,
String inputPath)
Method to find the first (part)file in the order given by
fs.listStatus() among all (part)files in inpathPath . |
static CSVReblockMR.AssignRowIDMRReturn |
runAssignRowIDMRJob(String[] inputs,
InputInfo[] inputInfos,
int[] brlens,
int[] bclens,
String reblockInstructions,
int replication,
String[] smallestFiles) |
static JobReturn |
runJob(MRJobInstruction inst,
String[] inputs,
InputInfo[] inputInfos,
long[] rlens,
long[] clens,
int[] brlens,
int[] bclens,
String reblockInstructions,
String otherInstructionsInReducer,
int numReducers,
int replication,
byte[] resultIndexes,
String[] outputs,
OutputInfo[] outputInfos) |
public static final String NUM_ROWS_IN_MATRIX
public static final String NUM_COLS_IN_MATRIX
public static final String ROWID_FILE_NAME
public static final String SMALLEST_FILE_NAME_PER_INPUT
public static final org.apache.hadoop.fs.PathFilter hiddenFileFilter
public static String findSmallestFile(org.apache.hadoop.mapred.JobConf job, String inputPath) throws FileNotFoundException, IOException
fs.listStatus()
among all (part)files in inpathPath
.job
- job configurationinputPath
- path to input fileIOException
- if IOException occursFileNotFoundException
- if FileNotFoundException occurspublic static JobReturn runJob(MRJobInstruction inst, String[] inputs, InputInfo[] inputInfos, long[] rlens, long[] clens, int[] brlens, int[] bclens, String reblockInstructions, String otherInstructionsInReducer, int numReducers, int replication, byte[] resultIndexes, String[] outputs, OutputInfo[] outputInfos) throws Exception
Exception
Copyright © 2018 The Apache Software Foundation. All rights reserved.