added enterprise btree first

This commit is contained in:
Yuce Tekol 2019-05-30 15:20:04 +03:00
parent f15cb9e05c
commit 778ae1e8e2
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -149,6 +149,13 @@ func (btc *bTreeContainers) Clone() roaring.Containers {
return nbtc
}
func (btc *bTreeContainers) First() (key uint64, c *roaring.Container) {
if btc.tree.Len() == 0 {
return 0, nil
}
return btc.tree.First()
}
func (btc *bTreeContainers) Last() (key uint64, c *roaring.Container) {
if btc.tree.Len() == 0 {
return 0, nil