Commit d243cad
Address review: return RoaringBitmap/BitSet directly from getDictIdBitmap/getDictIdBitSet
- getDictIdBitmap now returns wrapper._dictIdBitmap (RoaringBitmap) directly
- getDictIdBitSet now returns dictIdsWrapper._bitSet (BitSet) directly
- Removed now-unused helper methods from DictIdsWrapper and GroupByDictIdsWrapper
- Updated all call sites to use the raw types directly
- Test: assert reference equality in batch-reuse test to directly verify wrapper reuse
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3eca00d commit d243cad
2 files changed
Lines changed: 34 additions & 39 deletions
File tree
- pinot-core/src
- main/java/org/apache/pinot/core/query/aggregation/function
- test/java/org/apache/pinot/core/query/aggregation/function
Lines changed: 15 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | | - | |
| 173 | + | |
171 | 174 | | |
172 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| |||
638 | 643 | | |
639 | 644 | | |
640 | 645 | | |
641 | | - | |
642 | | - | |
| 646 | + | |
| 647 | + | |
643 | 648 | | |
644 | | - | |
| 649 | + | |
645 | 650 | | |
646 | 651 | | |
647 | 652 | | |
648 | 653 | | |
649 | 654 | | |
650 | 655 | | |
651 | | - | |
| 656 | + | |
652 | 657 | | |
653 | 658 | | |
654 | 659 | | |
655 | | - | |
| 660 | + | |
656 | 661 | | |
657 | | - | |
| 662 | + | |
658 | 663 | | |
659 | 664 | | |
660 | 665 | | |
661 | 666 | | |
662 | 667 | | |
663 | 668 | | |
664 | | - | |
| 669 | + | |
665 | 670 | | |
666 | 671 | | |
667 | 672 | | |
| |||
735 | 740 | | |
736 | 741 | | |
737 | 742 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | 743 | | |
755 | 744 | | |
756 | 745 | | |
| |||
768 | 757 | | |
769 | 758 | | |
770 | 759 | | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | 760 | | |
780 | 761 | | |
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
125 | 132 | | |
126 | 133 | | |
127 | 134 | | |
| |||
152 | 159 | | |
153 | 160 | | |
154 | 161 | | |
155 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
156 | 166 | | |
157 | | - | |
| 167 | + | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
161 | 171 | | |
162 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
163 | 177 | | |
164 | 178 | | |
165 | 179 | | |
| |||
0 commit comments