52
52
import java .util .LinkedHashMap ;
53
53
import java .util .List ;
54
54
import java .util .Map ;
55
- import java .util .Set ;
56
55
57
56
import org .mockito .Mockito ;
58
57
@@ -172,7 +171,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
172
171
// single filter - matches docs
173
172
starTreeDocCount = getDocCountFromStarTree (
174
173
starTreeDocValuesReader ,
175
- new StarTreeFilter (Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (0L ))))),
174
+ new StarTreeFilter (Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))))),
176
175
context ,
177
176
searchContext
178
177
);
@@ -183,7 +182,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
183
182
// single filter on 3rd field in ordered dimension - matches docs
184
183
starTreeDocCount = getDocCountFromStarTree (
185
184
starTreeDocValuesReader ,
186
- new StarTreeFilter (Map .of (DV , Set .of (new ExactMatchDimFilter (DV , List .of (0L ))))),
185
+ new StarTreeFilter (Map .of (DV , List .of (new ExactMatchDimFilter (DV , List .of (0L ))))),
187
186
context ,
188
187
searchContext
189
188
);
@@ -194,7 +193,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
194
193
// single filter - does not match docs
195
194
starTreeDocCount = getDocCountFromStarTree (
196
195
starTreeDocValuesReader ,
197
- new StarTreeFilter (Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (101L ))))),
196
+ new StarTreeFilter (Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (101L ))))),
198
197
context ,
199
198
searchContext
200
199
);
@@ -205,7 +204,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
205
204
// single filter on 3rd field in ordered dimension - does not match docs
206
205
starTreeDocCount = getDocCountFromStarTree (
207
206
starTreeDocValuesReader ,
208
- new StarTreeFilter (Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (-101L ))))),
207
+ new StarTreeFilter (Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (-101L ))))),
209
208
context ,
210
209
searchContext
211
210
);
@@ -217,7 +216,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
217
216
starTreeDocCount = getDocCountFromStarTree (
218
217
starTreeDocValuesReader ,
219
218
new StarTreeFilter (
220
- Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , Set .of (new ExactMatchDimFilter (DV , List .of (0L ))))
219
+ Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , List .of (new ExactMatchDimFilter (DV , List .of (0L ))))
221
220
),
222
221
context ,
223
222
searchContext
@@ -230,7 +229,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
230
229
starTreeDocCount = getDocCountFromStarTree (
231
230
starTreeDocValuesReader ,
232
231
new StarTreeFilter (
233
- Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , Set .of (new ExactMatchDimFilter (DV , List .of (-11L ))))
232
+ Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , List .of (new ExactMatchDimFilter (DV , List .of (-11L ))))
234
233
),
235
234
context ,
236
235
searchContext
@@ -243,7 +242,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
243
242
starTreeDocCount = getDocCountFromStarTree (
244
243
starTreeDocValuesReader ,
245
244
new StarTreeFilter (
246
- Map .of (SNDV , Set .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , Set .of (new ExactMatchDimFilter (DV , List .of (-100L ))))
245
+ Map .of (SNDV , List .of (new ExactMatchDimFilter (SNDV , List .of (0L ))), DV , List .of (new ExactMatchDimFilter (DV , List .of (-100L ))))
247
246
),
248
247
context ,
249
248
searchContext
@@ -257,7 +256,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
257
256
IllegalStateException .class ,
258
257
() -> getDocCountFromStarTree (
259
258
starTreeDocValuesReader ,
260
- new StarTreeFilter (Map .of (FIELD_NAME , Set .of (new ExactMatchDimFilter (FIELD_NAME , List .of (0L ))))),
259
+ new StarTreeFilter (Map .of (FIELD_NAME , List .of (new ExactMatchDimFilter (FIELD_NAME , List .of (0L ))))),
261
260
context ,
262
261
searchContext
263
262
)
@@ -267,7 +266,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
267
266
// Documents are not indexed
268
267
starTreeDocCount = getDocCountFromStarTree (
269
268
starTreeDocValuesReader ,
270
- new StarTreeFilter (Map .of (SDV , Set .of (new ExactMatchDimFilter (SDV , List .of (4L ))))),
269
+ new StarTreeFilter (Map .of (SDV , List .of (new ExactMatchDimFilter (SDV , List .of (4L ))))),
271
270
context ,
272
271
searchContext
273
272
);
@@ -278,7 +277,7 @@ private void testStarTreeFilter(int maxLeafDoc, boolean skipStarNodeCreationForS
278
277
// Documents are indexed
279
278
starTreeDocCount = getDocCountFromStarTree (
280
279
starTreeDocValuesReader ,
281
- new StarTreeFilter (Map .of (SDV , Set .of (new ExactMatchDimFilter (SDV , List .of (4L ))))),
280
+ new StarTreeFilter (Map .of (SDV , List .of (new ExactMatchDimFilter (SDV , List .of (4L ))))),
282
281
context ,
283
282
searchContext
284
283
);
0 commit comments