ReadableBitmap
A set of document ordinals that can be read, whether it is being built on the heap or read straight out of a mapped file.
An ordinal is the position of a document within one segment, counting from zero — which is what an index sidecar stores against a value, and the reason a bitmap here is per-segment rather than global. Ordinals run 0..BitmapFormat.MAX_ORDINAL.
Every operation on this interface is implemented once, here, over the two implementations' shared view of their blocks. That is not tidiness: Bitmap and BitmapView answer the same questions about the same values, and a rank that differed between them would mean a query returning different documents depending on whether the sidecar it read had been flushed yet. The interface is sealed so that stays true — an implementation from outside the module could not be given to the algebra.
Sizes and ranks are Int. See BitmapFormat.MAX_ORDINAL for the one ordinal that costs.
Inheritors
Functions
The ordinals present in both.
How many ordinals the two share, without building the intersection.
The ordinals present here and not in other.
A walk over every present ordinal, ascending.
This bitmap in the layout BitmapFormat describes, canonically encoded.
The size encode will produce, without producing it.
Whether the two share an ordinal, without building the intersection.
The ordinals present in either.
Every present ordinal, ascending. For tests and for small results; a cursor does not allocate.
The ordinals present in exactly one of the two.