Skip to content

Commit

Permalink
Fix some of the types in the streaming JavaAPI suite. Probably still …
Browse files Browse the repository at this point in the history
…needs more work
  • Loading branch information
holdenk committed Apr 8, 2014
1 parent 37888ec commit b1ae51a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ public void testPairGroupByKey() {
JavaDStream<Tuple2<String, String>> stream = JavaTestUtils.attachTestInputStream(ssc, inputData, 1);
JavaPairDStream<String, String> pairStream = JavaPairDStream.fromJavaDStream(stream);

JavaPairDStream<String, List<String>> grouped = pairStream.groupByKey();
JavaPairDStream<String, Iterator<String>> grouped = pairStream.groupByKey();
JavaTestUtils.attachTestOutputStream(grouped);
List<List<Tuple2<String, List<String>>>> result = JavaTestUtils.runStreams(ssc, 2, 2);

Expand Down Expand Up @@ -1128,7 +1128,7 @@ public void testGroupByKeyAndWindow() {
JavaDStream<Tuple2<String, Integer>> stream = JavaTestUtils.attachTestInputStream(ssc, inputData, 1);
JavaPairDStream<String, Integer> pairStream = JavaPairDStream.fromJavaDStream(stream);

JavaPairDStream<String, List<Integer>> groupWindowed =
JavaPairDStream<String, Iterator<Integer>> groupWindowed =
pairStream.groupByKeyAndWindow(new Duration(2000), new Duration(1000));
JavaTestUtils.attachTestOutputStream(groupWindowed);
List<List<Tuple2<String, List<Integer>>>> result = JavaTestUtils.runStreams(ssc, 3, 3);
Expand Down Expand Up @@ -1471,7 +1471,7 @@ public void testCoGroup() {
ssc, stringStringKVStream2, 1);
JavaPairDStream<String, String> pairStream2 = JavaPairDStream.fromJavaDStream(stream2);

JavaPairDStream<String, Tuple2<List<String>, List<String>>> grouped = pairStream1.cogroup(pairStream2);
JavaPairDStream<String, Tuple2<Iterator<String>, Iterator<String>>> grouped = pairStream1.cogroup(pairStream2);
JavaTestUtils.attachTestOutputStream(grouped);
List<List<Tuple2<String, Tuple2<List<String>, List<String>>>>> result = JavaTestUtils.runStreams(ssc, 2, 2);

Expand Down

0 comments on commit b1ae51a

Please sign in to comment.