public class ExternalProcessInputSplit extends GenericInputSplit
InputFormat that read their data from external processes.
Each parallel instance of an InputFormat starts an external process and reads its output.
The command to start the external process must be executable on all nodes.| Constructor and Description |
|---|
ExternalProcessInputSplit() |
ExternalProcessInputSplit(int splitNumber,
int numSplits,
String extProcCommand)
Instantiates an ExternalProcessInputSplit
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalProcessCommand()
Returns the command to be executed to derive the input for this split
|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
equals, getSplitNumber, getTotalNumberOfSplits, hashCode, toStringpublic ExternalProcessInputSplit()
public ExternalProcessInputSplit(int splitNumber,
int numSplits,
String extProcCommand)
splitNumber - The number of the input splitextProcCommand - The command to be executed for the input splitpublic String getExternalProcessCommand()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableread in class GenericInputSplitIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritablewrite in class GenericInputSplitIOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.