Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.0.0
-
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.