assertEquals(collection.retrieve(greaterThanOrEqualTo(Car.CAR_ID, 85)).size(), 15);
}
@Test
public void indexQuantization_Between() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
<BUG>collection.addIndex(withQuantizerOnAttribute(IntegerQuantizer.withCompressionFactor(10), Car.CAR_ID));
collection.addAll(CarFactory.createCollectionOfCars(100));</BUG>
Query<EntityHandle<Car>> query = between(Car.CAR_ID, 88, 92);
assertEquals(collection.retrieve(query).size(), 5);
assertEquals(retrieveCarIds(collection, query), asList(88, 89, 90, 91, 92));

assertEquals(collection.retrieve(greaterThanOrEqualTo(Car.CAR_ID, 85)).size(), 15);
}
@Test
public void indexQuantization_Between() {
IndexedCollection<EntityHandle<Car>> collection = new ConcurrentIndexedCollection<>();
Index<EntityHandle<Car>> index = withQuantizerOnAttribute(IntegerQuantizer.withCompressionFactor(10),
Car.CAR_ID);
index.clear(noQueryOptions());
collection.addIndex(index);
collection.addAll(CarFactory.createCollectionOfCars(100));
Query<EntityHandle<Car>> query = between(Car.CAR_ID, 88, 92);
assertEquals(collection.retrieve(query).size(), 5);
assertEquals(retrieveCarIds(collection, query), asList(88, 89, 90, 91, 92));
