PCollection collection = pipeline.read(new NLineFileSource<String>(tmpFile, Writables.strings(), numLinesPerSplit));
if (!randomizeFewInputFiles) {
collection = randomize(collection); // uses a high latency MapReduce job
}
collection = collection.parallelDo(new HeartbeatFn(), collection.getPType());
return collection;
}
}
private void writeOutput(CrunchIndexerToolOptions opts, Pipeline pipeline, PCollection collection) {