Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-732

Utility UDFs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.3.0
    • None
    • None

    Description

      Two utility UDFs and their respective test cases.

      1. TopN - Accepts number of tuples (N) to retain in output, field number (type long) to use for comparison, and an sorted/unsorted bag of tuples. It outputs a bag containing top N tuples.

      2. SearchQuery - Accepts an encoded URL from any of the 4 search engines (Yahoo, Google, AOL, Live) and extracts and normalizes the search query present in it.

      Attachments

        1. udf.v1.patch
          10 kB
          Ankur Bansal
        2. udf.v2.patch
          14 kB
          Ankur Bansal
        3. udf.v3.patch
          15 kB
          Ankur Bansal
        4. udf.v4.patch
          15 kB
          Ankur Bansal
        5. udf.v5.patch
          15 kB
          Ankur Bansal

        Activity

          People

            ankur Ankur Bansal
            ankur Ankur Bansal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: