Skip to content

Commit

Permalink
upgrade to RoaringBitmap 0.9.25 (apache#8206)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardstartin authored and xiangfu0 committed Feb 23, 2022
1 parent 33b5b07 commit c0eee8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ org.eclipse.jetty:jetty-util:9.4.39.v20210325
org.javassist:javassist:3.19.0-GA
org.lz4:lz4-java:1.7.1
org.quartz-scheduler:quartz:2.3.2
org.roaringbitmap:RoaringBitmap:0.9.23
org.roaringbitmap:shims:0.9.23
org.roaringbitmap:RoaringBitmap:0.9.25
org.roaringbitmap:shims:0.9.25
org.typelevel:macro-compat_2.12:1.1.1
org.webjars:swagger-ui:3.23.11
org.wildfly.openssl:wildfly-openssl:1.0.7.Final
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.apache.pinot.segment.spi.index.reader.RangeIndexReader;
import org.apache.pinot.segment.spi.memory.PinotDataBuffer;
import org.roaringbitmap.RangeBitmap;
import org.roaringbitmap.RoaringBitmap;
import org.roaringbitmap.buffer.ImmutableRoaringBitmap;
import org.roaringbitmap.buffer.MutableRoaringBitmap;

Expand Down Expand Up @@ -109,11 +108,10 @@ public ImmutableRoaringBitmap getPartiallyMatchingDocIds(double min, double max)
private ImmutableRoaringBitmap queryRangeBitmap(long min, long max, long columnMax) {
RangeBitmap rangeBitmap = mapRangeBitmap();
if (Long.compareUnsigned(max, columnMax) < 0) {
RoaringBitmap lte = rangeBitmap.lte(max);
if (Long.compareUnsigned(min, 0) > 0) {
return rangeBitmap.gte(min, lte).toMutableRoaringBitmap();
return rangeBitmap.between(min, max).toMutableRoaringBitmap();
}
return lte.toMutableRoaringBitmap();
return rangeBitmap.lte(max).toMutableRoaringBitmap();
} else {
if (Long.compareUnsigned(min, 0) > 0) {
return rangeBitmap.gte(min).toMutableRoaringBitmap();
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
<dependency>
<groupId>org.roaringbitmap</groupId>
<artifactId>RoaringBitmap</artifactId>
<version>0.9.23</version>
<version>0.9.25</version>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
Expand Down

0 comments on commit c0eee8f

Please sign in to comment.