Documentation ¶
Index ¶
- Constants
- func New() bitmap.Bitmap
- type BitmapStorage
- type Ewah
- func (this *Ewah) And(a ...bitmap.Bitmap) bitmap.Bitmap
- func (this *Ewah) AndNot(a ...bitmap.Bitmap) bitmap.Bitmap
- func (this *Ewah) Cardinality() int64
- func (this *Ewah) Clear()
- func (this *Ewah) Clone() bitmap.Bitmap
- func (this *Ewah) Copy(other bitmap.Bitmap) bitmap.Bitmap
- func (this *Ewah) Equal(other bitmap.Bitmap) bool
- func (this *Ewah) Get(i int64) bool
- func (this *Ewah) Not() bitmap.Bitmap
- func (this *Ewah) Or(a ...bitmap.Bitmap) bitmap.Bitmap
- func (this *Ewah) PrintStats(details bool)
- func (this *Ewah) Reset()
- func (this *Ewah) Set(i int64) bitmap.Bitmap
- func (this *Ewah) Size() int64
- func (this *Ewah) SizeInBytes() int64
- func (this *Ewah) SizeInWords() int64
- func (this *Ewah) Swap(other *Ewah) bitmap.Bitmap
- func (this *Ewah) Xor(a ...bitmap.Bitmap) bitmap.Bitmap
Constants ¶
View Source
const ( RunningLengthBits int32 = 32 LiteralBits int32 = 64 - 1 - RunningLengthBits LargestLiteralCount uint64 = (uint64(1) << uint32(LiteralBits)) - 1 LargestRunningLengthCount uint64 = (uint64(1) << uint32(RunningLengthBits)) - 1 RunningLengthPlusRunningBit uint64 = (uint64(1) << uint32(RunningLengthBits+1)) - 1 ShiftedLargestRunningLengthCount uint64 = LargestRunningLengthCount << 1 NotRunningLengthPlusRunningBit uint64 = ^RunningLengthPlusRunningBit NotShiftedLargestRunningLengthCount uint64 = ^ShiftedLargestRunningLengthCount )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitmapStorage ¶
type BitmapStorage interface {
// contains filtered or unexported methods
}
type Ewah ¶
type Ewah struct {
// contains filtered or unexported fields
}
func (*Ewah) Cardinality ¶
func (*Ewah) PrintStats ¶
func (*Ewah) Set ¶
Set sets the bit at position i to true (1). The bits must be set in ascending order. For example, set(15) then set(7) will fail.
func (*Ewah) Size ¶
Returns the size in bits of the *uncompressed* bitmap represented by this compressed bitmap. Initially, the sizeInBits is zero. It is extended automatically when you set bits to true.
func (*Ewah) SizeInBytes ¶
Report the *compressed* size of the bitmap (equivalent to memory usage, after accounting for some overhead).
func (*Ewah) SizeInWords ¶
Click to show internal directories.
Click to hide internal directories.