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 org.apache.flink.api.common.operators.ResourceSpec |
minResources |
protected String |
name |
protected int |
parallelism |
protected org.apache.flink.api.common.operators.ResourceSpec |
preferredResources |
| Modifier | Constructor and Description |
|---|---|
protected |
Operator(ExecutionEnvironment context,
org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.operators.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.
|
org.apache.flink.api.common.operators.ResourceSpec |
getPreferredResources()
Returns the preferred resource of this operator.
|
org.apache.flink.api.common.typeinfo.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, writeAsTextprotected String name
protected int parallelism
protected org.apache.flink.api.common.operators.ResourceSpec minResources
protected org.apache.flink.api.common.operators.ResourceSpec preferredResources
protected Operator(ExecutionEnvironment context, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> resultType)
public org.apache.flink.api.common.typeinfo.TypeInformation<OUT> getResultType()
public String getName()
public int getParallelism()
public org.apache.flink.api.common.operators.ResourceSpec getMinResources()
public org.apache.flink.api.common.operators.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–2021 The Apache Software Foundation. All rights reserved.