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

[zebra] Using typed APIs for Zebra's Map/Reduce interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.6.0, 0.7.0
    • None
    • None

    Description

      We plan to modify Zebra's M/R interface to use typed APIs, i.e., APIs taking object arguments, instead of String arguments.

      Take TableInputFormat as an example:

      setSchema(jobConf conf, String schema) is changing to setSchema(jobConf conf, ZebraSchemaInfo schemaInfo)
      setProjection(jobConf conf, String projection) is changing to setProjection(jobConf conf, ZebraProjectionInfo projectionInfo)

      and so on.

      Benefits: 1) Typed APIs make it easier to detect usage mistakes earlier and 2) Typed APIs are richer and hide things better.

      In the meanwhile, we plan to make the old APIs deprecated, instead of removing them, for the sake of safety.

      Attachments

        1. PIG-1125.patch
          232 kB
          Chao Wang
        2. PIG-1125.patch
          237 kB
          Chao Wang

        Activity

          People

            chaow Chao Wang
            chaow Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: