org.apache.flink.streaming.examples.utils.ThrottledIterator Java Examples

The following examples show how to use org.apache.flink.streaming.examples.utils.ThrottledIterator. 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: WindowJoinSampleData.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new GradeSource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}
 
Example #2
Source File: WindowJoinSampleData.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new SalarySource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}
 
Example #3
Source File: WindowJoinSampleData.java    From flink with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new GradeSource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}
 
Example #4
Source File: WindowJoinSampleData.java    From flink with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new SalarySource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}
 
Example #5
Source File: WindowJoinSampleData.java    From flink with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new GradeSource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}
 
Example #6
Source File: WindowJoinSampleData.java    From flink with Apache License 2.0 4 votes vote down vote up
public static DataStream<Tuple2<String, Integer>> getSource(StreamExecutionEnvironment env, long rate) {
	return env.fromCollection(new ThrottledIterator<>(new SalarySource(), rate),
			TypeInformation.of(new TypeHint<Tuple2<String, Integer>>(){}));
}