OUT - The type of the data set produced by this operator.O - The type of the operator, so that we can return it.public abstract class Operator<OUT,O extends Operator<OUT,O>> extends DataSet<OUT>
| Modifier and Type | Field and Description |
|---|---|
protected int |
dop |
protected String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
Operator(ExecutionEnvironment context,
TypeInformation<OUT> resultType) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the operator.
|
int |
getParallelism()
Returns the degree of parallelism 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 dop)
Sets the degree of parallelism for this operator.
|
aggregate, checkSameExecutionContext, clean, coGroup, cross, crossWithHuge, crossWithTiny, distinct, distinct, distinct, distinct, filter, first, flatMap, getExecutionEnvironment, getType, groupBy, groupBy, groupBy, iterate, iterateDelta, join, join, joinWithHuge, joinWithTiny, map, mapPartition, max, maxBy, min, minBy, output, partitionByHash, partitionByHash, partitionByHash, partitionCustom, partitionCustom, partitionCustom, print, printToErr, project, rebalance, reduce, reduceGroup, runOperation, sum, union, write, write, writeAsCsv, writeAsCsv, writeAsCsv, writeAsCsv, writeAsFormattedText, writeAsFormattedText, writeAsText, writeAsTextprotected String name
protected int dop
protected Operator(ExecutionEnvironment context, TypeInformation<OUT> resultType)
public TypeInformation<OUT> getResultType()
public String getName()
public int getParallelism()
public O name(String newName)
newName - The name for this operator.public O setParallelism(int dop)
dop - The degree of parallelism for this operator.Copyright © 2015 The Apache Software Foundation. All rights reserved.