Documentation ¶
Index ¶
- func TranslateError(err error) error
- type ImmutIndex
- type MutIndex
- func (idx *MutIndex) BatchDedup(ctx context.Context, keys *vector.Vector, keysZM index.ZM, ...) (keyselects *roaring.Bitmap, err error)
- func (idx *MutIndex) BatchUpsert(keys *vector.Vector, offset int) (err error)
- func (idx *MutIndex) Close() error
- func (idx *MutIndex) Dedup(ctx context.Context, key any, skipfn func(row uint32) (err error)) (err error)
- func (idx *MutIndex) GetActiveRow(key any) (row []uint32, err error)
- func (idx *MutIndex) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TranslateError ¶
Types ¶
type ImmutIndex ¶
type ImmutIndex struct {
// contains filtered or unexported fields
}
func NewImmutIndex ¶
func NewImmutIndex( zm index.ZM, bf objectio.BloomFilter, location objectio.Location, ) ImmutIndex
func (ImmutIndex) BatchDedup ¶
type MutIndex ¶
type MutIndex struct {
// contains filtered or unexported fields
}
func NewMutIndex ¶
func (*MutIndex) BatchDedup ¶
func (*MutIndex) BatchUpsert ¶
BatchUpsert batch insert the specific keys If any deduplication, it will fetch the old value first, fill the active map with new value, insert the old value into delete map If any other unknown error hanppens, return error
func (*MutIndex) Dedup ¶
func (idx *MutIndex) Dedup(ctx context.Context, key any, skipfn func(row uint32) (err error)) (err error)
Dedup returns wether the specified key is existed If key is existed, return ErrDuplicate If any other unknown error happens, return error If key is not found, return nil
func (*MutIndex) GetActiveRow ¶
Click to show internal directories.
Click to hide internal directories.