Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-57

Add a length function to PCollection

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.4.0
    • Core
    • None

    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

        1. CRUNCH-57.patch
          13 kB
          Kiyan Ahmadizadeh
        2. minver2.patch
          2 kB
          Rahul Sharma
        3. CRUNCH-57.patch
          12 kB
          Kiyan Ahmadizadeh
        4. MinMaxFn.patch
          8 kB
          Rahul Sharma

        Issue Links

          Activity

            People

              jwills Josh Wills
              kiyan Kiyan Ahmadizadeh
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: