public class FileDataSource extends DataSource
_context
_configuration, _inputData, _numInstances, _stub
Constructor and Description |
---|
FileDataSource(java.lang.Class<? extends org.apache.hadoop.mapreduce.lib.input.FileInputFormat<?,?>> inputFormatClass,
java.net.URI path,
java.lang.String name)
Create a new FileDataSource.
|
Modifier and Type | Method and Description |
---|---|
org.apache.spark.api.java.JavaPairRDD<java.lang.Object,?> |
execute()
Execute the operator.
|
setContext
_getOutput, getParameters, numInputs, setDegreeOfParallelism, setInput, setInput
public FileDataSource(java.lang.Class<? extends org.apache.hadoop.mapreduce.lib.input.FileInputFormat<?,?>> inputFormatClass, java.net.URI path, java.lang.String name)
inputFormatClass
- the format class to read the filepath
- the input file pathname
- the name of the operator