-
Notifications
You must be signed in to change notification settings - Fork 2
/
temp.txt
31 lines (30 loc) · 1.42 KB
/
temp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
DataStream<AdultData> genData = data
.map(new Generalize())
.keyBy(new KeySelector<AdultData, String>() {
public String getKey(AdultData tuple) {
String TupleQuasiString = tuple.QuasiToString(QID);
return TupleQuasiString;
}
});
*/
/*
KeyedStream<AdultData, String> keyedGenData = genData.keyBy(new KeySelector<AdultData, String>() {
public String getKey(AdultData tuple) {
String TupleQuasiString = tuple.QuasiToString(QID);
return TupleQuasiString;
}
});
*/
import org.apache.flink.api.java.operators.translation.PlanFilterOperator;
import org.apache.flink.api.java.utils.ParameterTool;
import org.apache.flink.streaming.api.TimeCharacteristic;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.datastream.KeyedStream;
import org.apache.flink.streaming.api.datastream.DataStreamSink;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.api.functions.co.RichCoFlatMapFunction;
import org.apache.flink.util.Collector;
import org.apache.flink.api.common.functions.FlatMapFunction;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.java.functions.KeySelector;