import static com.tdunning.plume.Plume.strings;
public class LogParseTest {
@Test
public void parseGroupSort() throws IOException {
Plume p = new LocalPlume();
PCollection<String> logs = p.readResourceFile("log.txt");
PTable<String, Event> events = logs.map(new DoFn<String, Pair<String, Event>>() {
@Override
public void process(String logLine, EmitFn<Pair<String, Event>> emitter) {
Event e = new Event(logLine);
emitter.emit(new Pair<String, Event>(e.getName(), e));