OUT
- The type of the data set produced by this operator.O
- The type of the operator, so that we can return it.@Public public abstract class Operator<OUT,O extends Operator<OUT,O>> extends DataSet<OUT>
Modifier and Type | Field and Description |
---|---|
protected ResourceSpec |
minResources |
protected String |
name |
protected int |
parallelism |
protected ResourceSpec |
preferredResources |
Modifier | Constructor and Description |
---|---|
protected |
Operator(ExecutionEnvironment context,
TypeInformation<OUT> resultType) |
Modifier and Type | Method and Description |
---|---|
ResourceSpec |
getMinResources()
Returns the minimum resource of this operator.
|
String |
getName()
Returns the name of the operator.
|
int |
getParallelism()
Returns the parallelism of this operator.
|
ResourceSpec |
getPreferredResources()
Returns the preferred resource of this operator.
|
TypeInformation<OUT> |
getResultType()
Returns the type of the result of this operator.
|
O |
name(String newName)
Sets the name of this operator.
|
O |
setParallelism(int parallelism)
Sets the parallelism for this operator.
|
aggregate, checkSameExecutionContext, clean, coGroup, collect, combineGroup, count, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, fillInType, filter, first, flatMap, fullOuterJoin, fullOuterJoin, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, leftOuterJoin, leftOuterJoin, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionByRange, partitionByRange, partitionByRange, partitionCustom, partitionCustom, partitionCustom, print, print, printOnTaskManager, printToErr, printToErr, project, rebalance, reduce, reduceGroup, rightOuterJoin, rightOuterJoin, runOperation, sortPartition, sortPartition, sortPartition, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsText
protected String name
protected int parallelism
protected ResourceSpec minResources
protected ResourceSpec preferredResources
protected Operator(ExecutionEnvironment context, TypeInformation<OUT> resultType)
public TypeInformation<OUT> getResultType()
public String getName()
public int getParallelism()
public ResourceSpec getMinResources()
public ResourceSpec getPreferredResources()
public O name(String newName)
newName
- The name for this operator.public O setParallelism(int parallelism)
parallelism
- The parallelism for this operator. A value equal to ExecutionConfig.PARALLELISM_DEFAULT
will use the system default.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.