Documentation
¶
Index ¶
- type DB
- type FieldView
- func (vs *FieldView) AddSet(field uint64, view string, ss *Set)
- func (vs *FieldView) AddShard(field uint64, view string, shard uint64)
- func (a *FieldView) Equals(b *FieldView) bool
- func (vs *FieldView) Get(field uint64) map[string]*Set
- func (vs *FieldView) Remove(field uint64)
- func (vs *FieldView) String() (r string)
- type Holder
- type Index
- type Key
- type Set
- type Shard
- type Tx
- func (tx *Tx) ApplyFilter(key Key, ckey uint64, filter roaring.BitmapFilter) (err error)
- func (tx *Tx) ApplyRewriter(key Key, ckey uint64, filter roaring.BitmapRewriter) (err error)
- func (tx *Tx) Commit() error
- func (tx *Tx) Container(key Key, containerKey uint64) (*roaring.Container, error)
- func (tx *Tx) ContainerIterator(key Key, container uint64) (citer roaring.ContainerIterator, found bool, err error)
- func (tx *Tx) Contains(key Key, v uint64) (exists bool, err error)
- func (tx *Tx) Count(key Key) (uint64, error)
- func (tx *Tx) CountRange(key Key, start, end uint64) (n uint64, err error)
- func (tx *Tx) GetFieldSizeBytes(field uint64) (uint64, error)
- func (tx *Tx) GetSortedFieldViewList(idx *Index, shard uint64) (fvs []txkey.FieldView, err error)
- func (tx *Tx) ImportRoaringBits(key Key, rit roaring.RoaringIterator, clear bool, log bool, rowSize uint64) (changed int, rowSet map[uint64]int, err error)
- func (tx *Tx) Max(key Key) (uint64, error)
- func (tx *Tx) Min(key Key) (uint64, bool, error)
- func (tx *Tx) OffsetRange(key Key, offset, start, end uint64) (*roaring.Bitmap, error)
- func (tx *Tx) PutContainer(key Key, containerKey uint64, c *roaring.Container) error
- func (tx *Tx) Remove(key Key, a ...uint64) (changeCount int, err error)
- func (tx *Tx) RemoveContainer(key Key, containerKey uint64) error
- func (tx *Tx) Removed(key Key, a ...uint64) (changed []uint64, err error)
- func (tx *Tx) RoaringBitmap(key Key) (*roaring.Bitmap, error)
- func (tx *Tx) Rollback()
- func (tx *Tx) SnapshotReader() (io.Reader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldView ¶
type FieldView struct {
// contains filtered or unexported fields
}
func NewFieldView ¶
func NewFieldView() *FieldView
type Key ¶
func (Key) FieldPrefix ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) CloneMaybe ¶
CloneMaybe maintains a re-usable readonly version ss.shards that can be returned to multiple goroutine reads as it will never change. A copy is only made once for each change in the shard set.
func (*Set) UnionInPlace ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) ApplyFilter ¶
func (*Tx) ApplyRewriter ¶
func (*Tx) ContainerIterator ¶
func (*Tx) CountRange ¶
CountRange returns the count of hot bits in the start, end range on the fragment. roaring.countRange counts the number of bits set between [start, end).