org.apache.flink.api.common.operators.OperatorInformation Java Examples
The following examples show how to use
org.apache.flink.api.common.operators.OperatorInformation.
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: DataSource.java From flink with Apache License 2.0 | 6 votes |
protected GenericDataSourceBase<OUT, ?> translateToDataFlow() { String name = this.name != null ? this.name : "at " + dataSourceLocationName + " (" + inputFormat.getClass().getName() + ")"; if (name.length() > 150) { name = name.substring(0, 150); } @SuppressWarnings({"unchecked", "rawtypes"}) GenericDataSourceBase<OUT, ?> source = new GenericDataSourceBase(this.inputFormat, new OperatorInformation<OUT>(getType()), name); source.setParallelism(parallelism); if (this.parameters != null) { source.getParameters().addAll(this.parameters); } if (this.splitDataProperties != null) { source.setSplitDataProperties(this.splitDataProperties); } return source; }
Example #2
Source File: DataSource.java From flink with Apache License 2.0 | 6 votes |
protected GenericDataSourceBase<OUT, ?> translateToDataFlow() { String name = this.name != null ? this.name : "at " + dataSourceLocationName + " (" + inputFormat.getClass().getName() + ")"; if (name.length() > 150) { name = name.substring(0, 150); } @SuppressWarnings({"unchecked", "rawtypes"}) GenericDataSourceBase<OUT, ?> source = new GenericDataSourceBase(this.inputFormat, new OperatorInformation<OUT>(getType()), name); source.setParallelism(parallelism); if (this.parameters != null) { source.getParameters().addAll(this.parameters); } if (this.splitDataProperties != null) { source.setSplitDataProperties(this.splitDataProperties); } return source; }
Example #3
Source File: DataSource.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
protected GenericDataSourceBase<OUT, ?> translateToDataFlow() { String name = this.name != null ? this.name : "at " + dataSourceLocationName + " (" + inputFormat.getClass().getName() + ")"; if (name.length() > 150) { name = name.substring(0, 150); } @SuppressWarnings({"unchecked", "rawtypes"}) GenericDataSourceBase<OUT, ?> source = new GenericDataSourceBase(this.inputFormat, new OperatorInformation<OUT>(getType()), name); source.setParallelism(parallelism); if (this.parameters != null) { source.getParameters().addAll(this.parameters); } if (this.splitDataProperties != null) { source.setSplitDataProperties(this.splitDataProperties); } return source; }
Example #4
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public SolutionSetPlaceHolder(DeltaIterationBase<ST, ?> container, OperatorInformation<ST> operatorInfo) { super(operatorInfo, "Solution Set"); this.containingIteration = container; }
Example #5
Source File: ChannelTest.java From flink with Apache License 2.0 | 4 votes |
private static final DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>( new TextInputFormat(new Path("/ignored")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO), "source")); }
Example #6
Source File: FeedbackPropertiesMatchTest.java From flink with Apache License 2.0 | 4 votes |
private static DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>(new TextInputFormat(new Path("/")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO))); }
Example #7
Source File: BulkIterationBase.java From flink with Apache License 2.0 | 4 votes |
public PartialSolutionPlaceHolder(BulkIterationBase<OT> container, OperatorInformation<OT> operatorInfo) { super(operatorInfo, "Partial Solution"); this.containingIteration = container; }
Example #8
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public SolutionSetPlaceHolder(DeltaIterationBase<ST, ?> container, OperatorInformation<ST> operatorInfo) { super(operatorInfo, "Solution Set"); this.containingIteration = container; }
Example #9
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public WorksetPlaceHolder(DeltaIterationBase<?, WT> container, OperatorInformation<WT> operatorInfo) { super(operatorInfo, "Workset"); this.containingIteration = container; }
Example #10
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 #11
Source File: ChannelTest.java From flink with Apache License 2.0 | 4 votes |
private static final DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>( new TextInputFormat(new Path("/ignored")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO), "source")); }
Example #12
Source File: FeedbackPropertiesMatchTest.java From flink with Apache License 2.0 | 4 votes |
private static DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>(new TextInputFormat(new Path("/")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO))); }
Example #13
Source File: BulkIterationBase.java From flink with Apache License 2.0 | 4 votes |
public PartialSolutionPlaceHolder(BulkIterationBase<OT> container, OperatorInformation<OT> operatorInfo) { super(operatorInfo, "Partial Solution"); this.containingIteration = container; }
Example #14
Source File: DeltaIterationBase.java From flink with Apache License 2.0 | 4 votes |
public WorksetPlaceHolder(DeltaIterationBase<?, WT> container, OperatorInformation<WT> operatorInfo) { super(operatorInfo, "Workset"); this.containingIteration = container; }
Example #15
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 #16
Source File: ChannelTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private static final DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>( new TextInputFormat(new Path("/ignored")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO), "source")); }
Example #17
Source File: FeedbackPropertiesMatchTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private static DataSourceNode getSourceNode() { return new DataSourceNode(new GenericDataSourceBase<String, TextInputFormat>(new TextInputFormat(new Path("/")), new OperatorInformation<String>(BasicTypeInfo.STRING_TYPE_INFO))); }
Example #18
Source File: BulkIterationBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public PartialSolutionPlaceHolder(BulkIterationBase<OT> container, OperatorInformation<OT> operatorInfo) { super(operatorInfo, "Partial Solution"); this.containingIteration = container; }
Example #19
Source File: DeltaIterationBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public SolutionSetPlaceHolder(DeltaIterationBase<ST, ?> container, OperatorInformation<ST> operatorInfo) { super(operatorInfo, "Solution Set"); this.containingIteration = container; }
Example #20
Source File: DeltaIterationBase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public WorksetPlaceHolder(DeltaIterationBase<?, WT> container, OperatorInformation<WT> operatorInfo) { super(operatorInfo, "Workset"); this.containingIteration = container; }
Example #21
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())); }