mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport roaring.NewSliceContainers
This commit is contained in:
parent
67cfe4dcee
commit
5ec9d3af22
2 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ type SliceContainers struct {
|
|||
lastContainer *Container
|
||||
}
|
||||
|
||||
func NewSliceContainers() *SliceContainers {
|
||||
func newSliceContainers() *SliceContainers {
|
||||
return &SliceContainers{}
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ func (sc *SliceContainers) GetOrCreate(key uint64) *Container {
|
|||
}
|
||||
|
||||
func (sc *SliceContainers) Clone() Containers {
|
||||
other := NewSliceContainers()
|
||||
other := newSliceContainers()
|
||||
other.keys = make([]uint64, len(sc.keys))
|
||||
other.containers = make([]*Container, len(sc.containers))
|
||||
copy(other.keys, sc.keys)
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ type Bitmap struct {
|
|||
// NewBitmap returns a Bitmap with an initial set of values.
|
||||
func NewBitmap(a ...uint64) *Bitmap {
|
||||
b := &Bitmap{
|
||||
Containers: NewSliceContainers(),
|
||||
Containers: newSliceContainers(),
|
||||
}
|
||||
b.Add(a...)
|
||||
return b
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue