T - The type of the input split (must extend ExternalProcessInputSplit)public abstract class ExternalProcessInputFormat<T extends ExternalProcessInputSplit> extends GenericInputFormat
ExternalProcessInputSplit objects that hold the command to execute.
Attention! | Modifier and Type | Field and Description |
|---|---|
protected int[] |
allowedExitCodes
Array of allowed exit codes
|
static String |
ALLOWEDEXITCODES_PARAMETER_KEY
The config parameter lists (comma separated) all allowed exit codes
|
protected InputStream |
extProcErrStream
The stderr stream of the external process
|
protected InputStream |
extProcOutStream
The stdout stream of the external process
|
| Constructor and Description |
|---|
ExternalProcessInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
void |
open(org.apache.flink.core.io.GenericInputSplit split) |
void |
waitForProcessToFinish() |
createInputSplits, getInputSplitAssigner, getStatisticspublic static final String ALLOWEDEXITCODES_PARAMETER_KEY
protected InputStream extProcOutStream
protected InputStream extProcErrStream
protected int[] allowedExitCodes
public void configure(org.apache.flink.configuration.Configuration parameters)
configure in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.types.Record,org.apache.flink.core.io.GenericInputSplit>configure in class org.apache.flink.api.common.io.GenericInputFormat<org.apache.flink.types.Record>public void close()
throws IOException
close in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.types.Record,org.apache.flink.core.io.GenericInputSplit>close in class org.apache.flink.api.common.io.GenericInputFormat<org.apache.flink.types.Record>IOExceptionpublic void open(org.apache.flink.core.io.GenericInputSplit split)
throws IOException
open in interface org.apache.flink.api.common.io.InputFormat<org.apache.flink.types.Record,org.apache.flink.core.io.GenericInputSplit>open in class org.apache.flink.api.common.io.GenericInputFormat<org.apache.flink.types.Record>IOExceptionpublic void waitForProcessToFinish()
throws InterruptedException
InterruptedExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.