List<Pair<String, Long>> expected = Lists.newArrayList(Pair.of("a", 1L), Pair.of("b", 1L), Pair.of("c", 1L),
Pair.of("e", 1L));
Collections.sort(materialized);
assertEquals(expected, materialized);
pipeline.done();
}
private static PType<String> STRING_PTYPE = Avros.derived(String.class,
new MapFn<StringWrapper, String>() { public String map(StringWrapper in) { return in.getValue(); }},
new MapFn<String, StringWrapper>() { public StringWrapper map(String out) { return new StringWrapper(out); }},