new Fields("in"));
Pipe pipe = new Pipe("batch-pipe");
pipe = new Each(pipe, new AnnotateWithSizeOfCurrentBatch(4));
Tap<JobConf, RecordReader, OutputCollector> dst = new Lfs(new SequenceFile(OUT_FIELD), getTestRoot()+"/out");
Flow f = CascadingUtil.get().getFlowConnector().connect(src, dst, pipe);
f.complete();
TupleEntryIterator tupleEntryIterator = dst.openForRead(CascadingUtil.get().getFlowProcess());
List<BytesWritable> outStrings = new ArrayList<BytesWritable>(6);
while (tupleEntryIterator.hasNext()) {
TupleEntry next = tupleEntryIterator.next();
BytesWritable bytes = (BytesWritable) next.getObject(OUT_FIELD);
outStrings.add(bytes);