MCPcopy
hub / github.com/RoaringBitmap/roaring / getContainer

Method getContainer

roaringarray.go:309–315  ·  view source on GitHub ↗

unused function: func (ra *roaringArray) containsKey(x uint16) bool { return (ra.binarySearch(0, int64(len(ra.keys)), x) >= 0) } getContainer returns the container with key `x` if no such container exists `nil` is returned

(x uint16)

Source from the content-addressed store, hash-verified

307// getContainer returns the container with key `x`
308// if no such container exists `nil` is returned
309func (ra *roaringArray) getContainer(x uint16) container {
310 i := ra.binarySearch(0, int64(len(ra.keys)), x)
311 if i < 0 {
312 return nil
313 }
314 return ra.containers[i]
315}
316
317func (ra *roaringArray) getContainerAtIndex(i int) container {
318 return ra.containers[i]

Callers 5

ContainsMethod · 0.45
NextValueMethod · 0.45
PreviousValueMethod · 0.45
NextAbsentValueMethod · 0.45
PreviousAbsentValueMethod · 0.45

Calls 1

binarySearchMethod · 0.95

Tested by

no test coverage detected