public abstract class DataSource extends Operator
Modifier and Type | Field and Description |
---|---|
protected org.apache.spark.api.java.JavaSparkContext |
_context
The Spark context.
|
_configuration, _inputData, _numInstances, _stub
Constructor and Description |
---|
DataSource(java.lang.Object stub,
java.lang.String name)
Create a new DataSource.
|
Modifier and Type | Method and Description |
---|---|
void |
setContext(org.apache.spark.api.java.JavaSparkContext context)
Set the spark context.
|
_getOutput, execute, getParameters, numInputs, setDegreeOfParallelism, setInput, setInput
protected org.apache.spark.api.java.JavaSparkContext _context
public DataSource(java.lang.Object stub, java.lang.String name)
stub
- the stub for reading the data.name
- the name of the operator.public void setContext(org.apache.spark.api.java.JavaSparkContext context)