PTable<String, Long> counts = Aggregate.count(resources);
// Instruct the pipeline to write the resulting counts to a text file.
pipeline.writeTextFile(counts, args[1]);
// Execute the pipeline as a MapReduce.
pipeline.done();
}
public static PCollection<String> extractFilterResources(PCollection<CommonLogEntry> logs) {
PTypeFamily tf = logs.getTypeFamily();
return logs.parallelDo(