Minimum get the smallest value stored in this roaring bitmap, assumes that it is not empty
()
| 1041 | |
| 1042 | // Minimum get the smallest value stored in this roaring bitmap, assumes that it is not empty |
| 1043 | func (rb *Bitmap) Minimum() uint32 { |
| 1044 | if len(rb.highlowcontainer.containers) == 0 { |
| 1045 | panic("Empty bitmap") |
| 1046 | } |
| 1047 | return uint32(rb.highlowcontainer.containers[0].minimum()) | (uint32(rb.highlowcontainer.keys[0]) << 16) |
| 1048 | } |
| 1049 | |
| 1050 | // Maximum get the largest value stored in this roaring bitmap, assumes that it is not empty |
| 1051 | func (rb *Bitmap) Maximum() uint32 { |