org.apache.flink.api.common.operators.base.FlatMapOperatorBase Java Examples
The following examples show how to use
org.apache.flink.api.common.operators.base.FlatMapOperatorBase.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlatMapOperator.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Override protected FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> translateToDataFlow(Operator<IN> input) { String name = getName() != null ? getName() : "FlatMap at " + defaultName; // create operator FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> po = new FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>>(function, new UnaryOperatorInformation<IN, OUT>(getInputType(), getResultType()), name); // set input po.setInput(input); // set parallelism if (this.getParallelism() > 0) { // use specified parallelism po.setParallelism(this.getParallelism()); } else { // if no parallelism has been specified, use parallelism of input operator to enable chaining po.setParallelism(input.getParallelism()); } return po; }
Example #2
Source File: FlatMapOperator.java From flink with Apache License 2.0 | 6 votes |
@Override protected FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> translateToDataFlow(Operator<IN> input) { String name = getName() != null ? getName() : "FlatMap at " + defaultName; // create operator FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> po = new FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>>(function, new UnaryOperatorInformation<IN, OUT>(getInputType(), getResultType()), name); // set input po.setInput(input); // set parallelism if (this.getParallelism() > 0) { // use specified parallelism po.setParallelism(this.getParallelism()); } else { // if no parallelism has been specified, use parallelism of input operator to enable chaining po.setParallelism(input.getParallelism()); } return po; }
Example #3
Source File: FlatMapOperator.java From flink with Apache License 2.0 | 6 votes |
@Override protected FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> translateToDataFlow(Operator<IN> input) { String name = getName() != null ? getName() : "FlatMap at " + defaultName; // create operator FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>> po = new FlatMapOperatorBase<IN, OUT, FlatMapFunction<IN, OUT>>(function, new UnaryOperatorInformation<IN, OUT>(getInputType(), getResultType()), name); // set input po.setInput(input); // set parallelism if (this.getParallelism() > 0) { // use specified parallelism po.setParallelism(this.getParallelism()); } else { // if no parallelism has been specified, use parallelism of input operator to enable chaining po.setParallelism(input.getParallelism()); } return po; }
Example #4
Source File: FlatMapNode.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public FlatMapNode(FlatMapOperatorBase<?, ?, ?> operator) { super(operator); this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FlatMapDescriptor()); }
Example #5
Source File: FlatMapNode.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public FlatMapOperatorBase<?, ?, ?> getOperator() { return (FlatMapOperatorBase<?, ?, ?>) super.getOperator(); }
Example #6
Source File: FlatMapNode.java From flink with Apache License 2.0 | 4 votes |
public FlatMapNode(FlatMapOperatorBase<?, ?, ?> operator) { super(operator); this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FlatMapDescriptor()); }
Example #7
Source File: FlatMapNode.java From flink with Apache License 2.0 | 4 votes |
@Override public FlatMapOperatorBase<?, ?, ?> getOperator() { return (FlatMapOperatorBase<?, ?, ?>) super.getOperator(); }
Example #8
Source File: FlatMapNode.java From flink with Apache License 2.0 | 4 votes |
public FlatMapNode(FlatMapOperatorBase<?, ?, ?> operator) { super(operator); this.possibleProperties = Collections.<OperatorDescriptorSingle>singletonList(new FlatMapDescriptor()); }
Example #9
Source File: FlatMapNode.java From flink with Apache License 2.0 | 4 votes |
@Override public FlatMapOperatorBase<?, ?, ?> getOperator() { return (FlatMapOperatorBase<?, ?, ?>) super.getOperator(); }