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

Improve ResourceStatistics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • None
    • None
    • None

    Description

      This is a follow-up JIRA to PIG-2582. ResourceStatistics should be improved and a few things we should do for 0.13.

      1. Consider removing method setmBytes(Long mBytes). We deprecated this method in 0.12, but the code does not seem intuitive as the setter is actually working on the variable "bytes".

      2. All setter methods return ResourceStatistics object and this is unnecessary. For eg:

      public ResourceStatistics setNumRecords(Long numRecords) {
              this.numRecords = numRecords;
              return this;
          }
      

      Each one of these variables has an associated getter.

      I will take this up once we are in the 0.13 cycle.

      Attachments

        Activity

          People

            prkommireddi Prashant Kommireddi
            prkommireddi Prashant Kommireddi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: