public final class RangeBitmap
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RangeBitmap.Appender
Builder for constructing immutable RangeBitmaps
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RangeBitmap.Appender |
appender(long maxValue)
Append values to the RangeBitmap before sealing it, defaults to on heap ByteBuffers.
|
static RangeBitmap.Appender |
appender(long maxValue,
java.util.function.IntFunction<java.nio.ByteBuffer> bufferSupplier,
java.util.function.Consumer<java.nio.ByteBuffer> cleaner)
Append values to the RangeBitmap before sealing it.
|
RoaringBitmap |
between(long min,
long max)
Returns a RoaringBitmap of rows which have a value in between the thresholds.
|
long |
betweenCardinality(long min,
long max)
Returns the number of rows which have a value in between the thresholds.
|
long |
betweenCardinality(long min,
long max,
RoaringBitmap context)
Returns the number of rows which have a value in between the thresholds.
|
RoaringBitmap |
gt(long threshold)
Returns a RoaringBitmap of rows which have a value greater than the threshold.
|
RoaringBitmap |
gt(long threshold,
RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than the threshold,
and intersect with the context bitmap, which will not be modified.
|
long |
gtCardinality(long threshold)
Returns the number of rows which have a value greater than the threshold.
|
long |
gtCardinality(long threshold,
RoaringBitmap context)
Returns the number of rows which have a value greater than the threshold,
and intersect with the context bitmap, which will not be modified.
|
RoaringBitmap |
gte(long threshold)
Returns a RoaringBitmap of rows which have a value greater than or equal to the threshold.
|
RoaringBitmap |
gte(long threshold,
RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value greater than or equal to the threshold,
and intersect with the context bitmap, which will not be modified.
|
long |
gteCardinality(long threshold)
Returns the number of rows which have a value greater than or equal to the threshold.
|
long |
gteCardinality(long threshold,
RoaringBitmap context)
Returns the number of rows which have a value greater than or equal to the threshold,
and intersect with the context bitmap, which will not be modified.
|
RoaringBitmap |
lt(long threshold)
Returns a RoaringBitmap of rows which have a value less than the threshold.
|
RoaringBitmap |
lt(long threshold,
RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than the threshold,
and intersect with the context bitmap, which will not be modified.
|
long |
ltCardinality(long threshold)
Returns the number of rows which have a value less than the threshold.
|
long |
ltCardinality(long threshold,
RoaringBitmap context)
Returns the number of rows which have a value less than the threshold,
and intersect with the context bitmap, which will not be modified.
|
RoaringBitmap |
lte(long threshold)
Returns a RoaringBitmap of rows which have a value less than or equal to the threshold.
|
RoaringBitmap |
lte(long threshold,
RoaringBitmap context)
Returns a RoaringBitmap of rows which have a value less than or equal to the threshold,
and intersect with the context bitmap, which will not be modified.
|
long |
lteCardinality(long threshold)
Returns the number of rows which have a value less than or equal to the threshold.
|
long |
lteCardinality(long threshold,
RoaringBitmap context)
Returns the number of rows which have a value less than or equal to the threshold,
and intersect with the context bitmap, which will not be modified.
|
static RangeBitmap |
map(java.nio.ByteBuffer buffer)
Maps the RangeBitmap from the buffer with minimal allocation.
|
public static RangeBitmap.Appender appender(long maxValue, java.util.function.IntFunction<java.nio.ByteBuffer> bufferSupplier, java.util.function.Consumer<java.nio.ByteBuffer> cleaner)
maxValue - the maximum value to be appended, values larger than this
value will be rejected.bufferSupplier - provides ByteBuffers.public static RangeBitmap.Appender appender(long maxValue)
maxValue - the maximum value to be appended, values larger than this
value will be rejected.public static RangeBitmap map(java.nio.ByteBuffer buffer)
buffer - a buffer containing a serialized RangeBitmap.public RoaringBitmap between(long min, long max)
min - the inclusive minimum value.max - the inclusive maximum value.public long betweenCardinality(long min,
long max)
min - the inclusive minimum value.max - the inclusive maximum value.public long betweenCardinality(long min,
long max,
RoaringBitmap context)
min - the inclusive minimum value.max - the inclusive maximum value.context - to be intersected with.public RoaringBitmap lte(long threshold)
threshold - the inclusive maximum value.public RoaringBitmap lte(long threshold, RoaringBitmap context)
threshold - the inclusive maximum value.context - to be intersected with.public long lteCardinality(long threshold)
threshold - the inclusive maximum value.public long lteCardinality(long threshold,
RoaringBitmap context)
threshold - the inclusive maximum value.context - to be intersected with.public RoaringBitmap lt(long threshold)
threshold - the exclusive maximum value.public RoaringBitmap lt(long threshold, RoaringBitmap context)
threshold - the exclusive maximum value.context - to be intersected with.public long ltCardinality(long threshold)
threshold - the exclusive maximum value.public long ltCardinality(long threshold,
RoaringBitmap context)
threshold - the exclusive maximum value.context - to be intersected with.public RoaringBitmap gt(long threshold)
threshold - the exclusive minimum value.public RoaringBitmap gt(long threshold, RoaringBitmap context)
threshold - the exclusive minimum value.context - to be intersected with.public long gtCardinality(long threshold)
threshold - the exclusive minimum value.public long gtCardinality(long threshold,
RoaringBitmap context)
threshold - the exclusive minimum value.context - to be intersected with.public RoaringBitmap gte(long threshold)
threshold - the inclusive minimum value.public RoaringBitmap gte(long threshold, RoaringBitmap context)
threshold - the inclusive minimum value.context - to be intersected with.public long gteCardinality(long threshold)
threshold - the inclusive minimum value.public long gteCardinality(long threshold,
RoaringBitmap context)
threshold - the inclusive minimum value.context - to be intersected with.