Description
Sometimes it's useful and interesting to compute the number of elements in a PCollection.
For example, suppose there was an initial PCollection that was then filtered into another. If I'm interested in how many elements of the original PCollection matched the filter, I'll have to write extra code to compute this.
PCollections should have a length method that, when called, computes the number of elements in the PCollection and returns the result.
Attachments
Attachments
Issue Links
- is related to
-
CRUNCH-58 Implement PObject in Crunch/Scrunch
- Closed