OUT
- The type of the elements produced by this data source.public class DataSource<OUT> extends DataSet<OUT>
Constructor and Description |
---|
DataSource(ExecutionEnvironment context,
InputFormat<OUT,?> inputFormat,
TypeInformation<OUT> type)
Creates a new data source.
|
Modifier and Type | Method and Description |
---|---|
InputFormat<OUT,?> |
getInputFormat()
Gets the input format that is executed by this data source.
|
int |
getParallelism()
Returns the degree of parallelism of this data source.
|
DataSource<OUT> |
name(String name)
Sets the name of the data source operation.
|
DataSource<OUT> |
setParallelism(int dop)
Sets the degree of parallelism for this data source.
|
protected GenericDataSourceBase<OUT,?> |
translateToDataFlow() |
aggregate, checkSameExecutionContext, coGroup, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, filter, flatMap, getExecutionEnvironment, getType, groupBy, groupBy, iterate, iterateDelta, join, joinWithHuge, joinWithTiny, map, max, min, output, print, printToErr, project, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsText, writeAsText
public DataSource(ExecutionEnvironment context, InputFormat<OUT,?> inputFormat, TypeInformation<OUT> type)
context
- The environment in which the data source gets executed.inputFormat
- The input format that the data source executes.type
- The type of the elements produced by this input format.public InputFormat<OUT,?> getInputFormat()
public DataSource<OUT> name(String name)
name
- The name for the data source.public int getParallelism()
public DataSource<OUT> setParallelism(int dop)
dop
- The degree of parallelism for this data source.protected GenericDataSourceBase<OUT,?> translateToDataFlow()
Copyright © 2014 The Apache Software Foundation. All rights reserved.