Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18343

Remove LinkedList from ColumnStatsSemanticAnalyzer.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • HiveServer2
    • None
    • Patch

    Description

      Remove LinkedList in favor of ArrayList for class org.apache.hadoop.hive.ql.parse.ColumnStatsSemanticAnalyzer.

      The size, isEmpty, get, set, iterator, and listIterator operations run in constant time. The add operation runs in amortized constant time, that is, adding n elements requires O(n) time. All of the other operations run in linear time (roughly speaking). The constant factor is low compared to that for the LinkedList implementation.

      Attachments

        1. HIVE-18343.1.patch
          1 kB
          David Mollitor
        2. HIVE-18343.2.patch
          12 kB
          David Mollitor
        3. HIVE-18343.3.patch
          12 kB
          David Mollitor
        4. HIVE-18343.4.patch
          12 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: