org.apache.flink.api.common.functions.AbstractRichFunction Java Examples
The following examples show how to use
org.apache.flink.api.common.functions.AbstractRichFunction.
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: NoOpDriver.java From flink with Apache License 2.0 | 5 votes |
@Override public void setup(TaskContext<AbstractRichFunction, T> context) { this.taskContext = context; this.running = true; }
Example #2
Source File: PythonStreamer.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
public PythonStreamer(AbstractRichFunction function, Configuration config, int envID, int setID, boolean usesByteArray, S sender) { this.config = config; this.envID = envID; this.setID = setID; this.receiver = new PythonReceiver<>(config, usesByteArray); this.function = function; this.sender = sender; }
Example #3
Source File: BulkIterationBase.java From flink with Apache License 2.0 | 4 votes |
/** * @param name */ public BulkIterationBase(UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); inputPlaceHolder = new PartialSolutionPlaceHolder<T>(this, this.getOperatorInfo()); }
Example #4
Source File: NoOpDriver.java From flink with Apache License 2.0 | 4 votes |
@Override public Class<AbstractRichFunction> getStubType() { return null; }
Example #5
Source File: Union.java From flink with Apache License 2.0 | 4 votes |
/** * Creates a new Union operator. */ public Union(BinaryOperatorInformation<T, T, T> operatorInfo, String unionLocationName) { // we pass it an AbstractFunction, because currently all operators expect some form of UDF super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, "Union at "+unionLocationName); }
Example #6
Source File: BulkIterationBase.java From flink with Apache License 2.0 | 4 votes |
/** * @param name */ public BulkIterationBase(UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); inputPlaceHolder = new PartialSolutionPlaceHolder<T>(this, this.getOperatorInfo()); }
Example #7
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public DeltaIterationBase(BinaryOperatorInformation<ST, WT, ST> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); this.solutionSetKeyFields = keyPositions; solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(this, new OperatorInformation<ST>(operatorInfo.getFirstInputType())); worksetPlaceholder = new WorksetPlaceHolder<WT>(this, new OperatorInformation<WT>(operatorInfo.getSecondInputType())); }
Example #8
Source File: NoOpDriver.java From flink with Apache License 2.0 | 4 votes |
@Override public Class<AbstractRichFunction> getStubType() { return null; }
Example #9
Source File: NoOpDriver.java From flink with Apache License 2.0 | 4 votes |
@Override public void setup(TaskContext<AbstractRichFunction, T> context) { this.taskContext = context; this.running = true; }
Example #10
Source File: Union.java From flink with Apache License 2.0 | 4 votes |
/** * Creates a new Union operator. */ public Union(BinaryOperatorInformation<T, T, T> operatorInfo, String unionLocationName) { // we pass it an AbstractFunction, because currently all operators expect some form of UDF super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, "Union at "+unionLocationName); }
Example #11
Source File: DeltaIterationBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public DeltaIterationBase(BinaryOperatorInformation<ST, WT, ST> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); this.solutionSetKeyFields = keyPositions; solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(this, new OperatorInformation<ST>(operatorInfo.getFirstInputType())); worksetPlaceholder = new WorksetPlaceHolder<WT>(this, new OperatorInformation<WT>(operatorInfo.getSecondInputType())); }
Example #12
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public DeltaIterationBase(BinaryOperatorInformation<ST, WT, ST> operatorInfo, int[] keyPositions, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); this.solutionSetKeyFields = keyPositions; solutionSetPlaceholder = new SolutionSetPlaceHolder<ST>(this, new OperatorInformation<ST>(operatorInfo.getFirstInputType())); worksetPlaceholder = new WorksetPlaceHolder<WT>(this, new OperatorInformation<WT>(operatorInfo.getSecondInputType())); }
Example #13
Source File: NoOpDriver.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public Class<AbstractRichFunction> getStubType() { return null; }
Example #14
Source File: NoOpDriver.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void setup(TaskContext<AbstractRichFunction, T> context) { this.taskContext = context; this.running = true; }
Example #15
Source File: PythonDualInputStreamer.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public PythonDualInputStreamer(AbstractRichFunction function, Configuration config, int envID, int setID, boolean usesByteArray) { super(function, config, envID, setID, usesByteArray, new PythonDualInputSender<IN1, IN2>(config)); }
Example #16
Source File: PythonSingleInputStreamer.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public PythonSingleInputStreamer(AbstractRichFunction function, Configuration config, int envID, int setID, boolean usesByteArray) { super(function, config, envID, setID, usesByteArray, new PythonSingleInputSender<IN>(config)); }
Example #17
Source File: Union.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
/** * Creates a new Union operator. */ public Union(BinaryOperatorInformation<T, T, T> operatorInfo, String unionLocationName) { // we pass it an AbstractFunction, because currently all operators expect some form of UDF super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, "Union at "+unionLocationName); }
Example #18
Source File: BulkIterationBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
/** * @param name */ public BulkIterationBase(UnaryOperatorInformation<T, T> operatorInfo, String name) { super(new UserCodeClassWrapper<AbstractRichFunction>(AbstractRichFunction.class), operatorInfo, name); inputPlaceHolder = new PartialSolutionPlaceHolder<T>(this, this.getOperatorInfo()); }