Documentation ¶
Index ¶
- Constants
- Variables
- func Apply(ra *Bitmap, filter roaring.BitmapFilter) error
- func DecodeContainer(value []byte) *roaring.Container
- func EncodeContainer(c *roaring.Container) []byte
- func LastValue(value []byte) uint16
- func ReadDistinctBSI(ra Reader, shard uint64, filterBitmap *Bitmap) *roaring.Bitmap
- func ReadMutex(ra Reader, shard uint64, filterBitmap *Bitmap, ...)
- func ReadSum(ra Reader, match *Bitmap) (count int32, total int64)
- func WriteBSI(ra *Bitmap, id uint64, svalue int64)
- func WriteBool(ra *Bitmap, id uint64, value bool)
- func WriteMutex(ra *Bitmap, id uint64, value uint64)
- type Bitmap
- func Existence(tx OffsetRanger, shard uint64) *Bitmap
- func Range(tx OffsetRanger, op OP, shard, bitDepth uint64, predicate, end int64) *Bitmap
- func ReadFalse(ra Reader, shard uint64, match *Bitmap) *Bitmap
- func ReadTrue(ra Reader, shard uint64, match *Bitmap) *Bitmap
- func Row(ra OffsetRanger, shard, rowID uint64) *Bitmap
- type BitmapRowsUnion
- type ContainerType
- type Merger
- type OP
- type OffsetRanger
- type Reader
Constants ¶
View Source
const ( // ArrayMaxSize represents the maximum size of array containers. // This is sligtly less than roaring to accommodate the page header. ArrayMaxSize = 4079 // RLEMaxSize represents the maximum size of run length encoded containers. RLEMaxSize = 2039 )
Variables ¶
View Source
var Merge = &pebble.Merger{ Name: "pilosa.RoaringBitmap", Merge: func(key, value []byte) (pebble.ValueMerger, error) { co := DecodeContainer(value).Clone() return (*Merger)(co), nil }, }
View Source
var NewBitmap = roaring.NewBitmap
View Source
var NewBitmapBitmapFilter = roaring.NewBitmapBitmapFilter
View Source
var NewBitmapRowsUnion = roaring.NewBitmapRowsUnion
Functions ¶
func DecodeContainer ¶ added in v1.8.0
func EncodeContainer ¶ added in v1.8.0
func ReadDistinctBSI ¶ added in v1.8.0
func WriteMutex ¶ added in v1.8.0
Types ¶
type Bitmap ¶ added in v1.8.0
func Existence ¶ added in v1.8.0
func Existence(tx OffsetRanger, shard uint64) *Bitmap
func Range ¶ added in v1.8.0
func Range(tx OffsetRanger, op OP, shard, bitDepth uint64, predicate, end int64) *Bitmap
Range returns bitmaps with a bsiGroup value encoding matching the predicate.
func Row ¶ added in v1.8.0
func Row(ra OffsetRanger, shard, rowID uint64) *Bitmap
type BitmapRowsUnion ¶ added in v1.8.0
type BitmapRowsUnion = roaring.BitmapRowsUnion
type ContainerType ¶ added in v1.8.0
type ContainerType int
const ( ContainerTypeArray ContainerType = 1 + iota ContainerTypeRLE ContainerTypeBitmap )
Container types.
type Merger ¶ added in v1.8.0
func (*Merger) MergeNewer ¶ added in v1.8.0
func (*Merger) MergeOlder ¶ added in v1.8.0
type OffsetRanger ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.