Documentation
¶
Index ¶
- func ToArray[T int64 | uint64 | int | int32 | uint32](bm *Bitmap, rows *[]T)
- type Bitmap
- func (n *Bitmap) Add(row uint64)
- func (n *Bitmap) AddMany(rows []uint64)
- func (n *Bitmap) AddRange(start, end uint64)
- func (n *Bitmap) And(b *Bitmap)
- func (n *Bitmap) C_And(m *Bitmap)
- func (n *Bitmap) C_Count() uint64
- func (n *Bitmap) C_IsEmpty() bool
- func (n *Bitmap) C_Or(m *Bitmap)
- func (n *Bitmap) Clear()
- func (n *Bitmap) Clone() *Bitmap
- func (n *Bitmap) Contains(row uint64) bool
- func (n *Bitmap) Count() int
- func (n *Bitmap) EmptyByFlag() bool
- func (n *Bitmap) Filter(sels []int64) *Bitmap
- func (n *Bitmap) InitWith(m *Bitmap)
- func (n *Bitmap) InitWithSize(len int64)
- func (n *Bitmap) IsEmpty() bool
- func (n *Bitmap) IsSame(b *Bitmap) bool
- func (n *Bitmap) Iterator() Iterator
- func (n *Bitmap) Len() int64
- func (n *Bitmap) Marshal() []byte
- func (n *Bitmap) MarshalBinary() ([]byte, error)
- func (n *Bitmap) MarshalV1() []byte
- func (n *Bitmap) Negate()
- func (n *Bitmap) Or(b *Bitmap)
- func (n *Bitmap) Ptr() *uint64
- func (n *Bitmap) RawPtrLen() (uintptr, uintptr)
- func (n *Bitmap) Remove(row uint64)
- func (n *Bitmap) RemoveRange(start, end uint64)
- func (n *Bitmap) Reset()
- func (n *Bitmap) Size() int
- func (n *Bitmap) String() string
- func (n *Bitmap) ToArray() []uint64
- func (n *Bitmap) ToI64Array(out *[]int64) []int64
- func (n *Bitmap) TryExpand(m *Bitmap)
- func (n *Bitmap) TryExpandWithSize(size int)
- func (n *Bitmap) Unmarshal(data []byte)
- func (n *Bitmap) UnmarshalBinary(data []byte) error
- func (n *Bitmap) UnmarshalNoCopy(data []byte)
- func (n *Bitmap) UnmarshalNoCopyV1(data []byte)
- func (n *Bitmap) UnmarshalV1(data []byte)
- type BitmapIterator
- type Iterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitmap ¶
type Bitmap struct {
// contains filtered or unexported fields
}
func (*Bitmap) EmptyByFlag ¶ added in v0.8.0
EmptyByFlag is a quick and dirty way to check if the Bitmap is empty. If it retruns true, the Bitmap is empty. Otherwise, it may or may not be empty.
func (*Bitmap) InitWithSize ¶ added in v0.8.0
func (*Bitmap) IsEmpty ¶
IsEmpty returns true if no bit in the Bitmap is set, otherwise it will return false.
func (*Bitmap) MarshalBinary ¶ added in v0.6.0
func (*Bitmap) MarshalV1 ¶
MarshalV1 in version 1, Bitmap.emptyFlag is type int32, now we use Bitmap.count replace it
func (*Bitmap) RemoveRange ¶
func (*Bitmap) Size ¶
Size return number of bytes in n.data XXX WTF Note that this size is not the same as InitWithSize.
func (*Bitmap) ToI64Array ¶
func (*Bitmap) TryExpandWithSize ¶
func (*Bitmap) UnmarshalBinary ¶ added in v0.6.0
func (*Bitmap) UnmarshalNoCopy ¶ added in v0.8.0
func (*Bitmap) UnmarshalNoCopyV1 ¶
func (*Bitmap) UnmarshalV1 ¶
UnmarshalV1 in version 1, Bitmap.emptyFlag is type int32, now we use Bitmap.count replace it
type BitmapIterator ¶
type BitmapIterator struct {
// contains filtered or unexported fields
}
func (*BitmapIterator) HasNext ¶
func (itr *BitmapIterator) HasNext() bool
func (*BitmapIterator) Next ¶
func (itr *BitmapIterator) Next() uint64
func (*BitmapIterator) PeekNext ¶
func (itr *BitmapIterator) PeekNext() uint64
Click to show internal directories.
Click to hide internal directories.