bsi

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSlicedIndex

type BitSlicedIndex interface {
	Clone() BitSlicedIndex
	NotNull(*roaring.Bitmap) *roaring.Bitmap

	Unmarshal([]byte) error
	Marshal() ([]byte, error)

	Del(uint64) error
	Set(uint64, interface{}) error
	Get(uint64) (interface{}, bool)

	Count(*roaring.Bitmap) uint64
	NullCount(*roaring.Bitmap) uint64
	Min(*roaring.Bitmap) (interface{}, uint64)
	Max(*roaring.Bitmap) (interface{}, uint64)
	Sum(*roaring.Bitmap) (interface{}, uint64)

	Eq(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)
	Ne(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)
	Lt(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)
	Le(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)
	Gt(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)
	Ge(interface{}, *roaring.Bitmap) (*roaring.Bitmap, error)

	Top(uint64, *roaring.Bitmap) *roaring.Bitmap
	Bottom(uint64, *roaring.Bitmap) *roaring.Bitmap
}

func NewNumericBSI

func NewNumericBSI(bitSize int, valType ValueType) BitSlicedIndex

func NewStringBSI

func NewStringBSI(charWidth, charSize int) BitSlicedIndex

type NumericBSI

type NumericBSI struct {
	// contains filtered or unexported fields
}

func (*NumericBSI) Bottom

func (b *NumericBSI) Bottom(k uint64, filter *roaring.Bitmap) *roaring.Bitmap

func (*NumericBSI) Clone

func (b *NumericBSI) Clone() BitSlicedIndex

func (*NumericBSI) Count

func (b *NumericBSI) Count(filter *roaring.Bitmap) uint64

func (*NumericBSI) Del

func (b *NumericBSI) Del(k uint64) error

func (*NumericBSI) Eq

func (b *NumericBSI) Eq(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) Ge

func (b *NumericBSI) Ge(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) Get

func (b *NumericBSI) Get(k uint64) (interface{}, bool)

func (*NumericBSI) Gt

func (b *NumericBSI) Gt(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) Le

func (b *NumericBSI) Le(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) Lt

func (b *NumericBSI) Lt(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) Marshal

func (b *NumericBSI) Marshal() ([]byte, error)

func (*NumericBSI) Max

func (b *NumericBSI) Max(filter *roaring.Bitmap) (interface{}, uint64)

func (*NumericBSI) Min

func (b *NumericBSI) Min(filter *roaring.Bitmap) (interface{}, uint64)

func (*NumericBSI) Ne

func (b *NumericBSI) Ne(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*NumericBSI) NotNull

func (b *NumericBSI) NotNull(filter *roaring.Bitmap) *roaring.Bitmap

func (*NumericBSI) NullCount

func (b *NumericBSI) NullCount(filter *roaring.Bitmap) uint64

func (*NumericBSI) Set

func (b *NumericBSI) Set(k uint64, e interface{}) error

func (*NumericBSI) Sum

func (b *NumericBSI) Sum(filter *roaring.Bitmap) (interface{}, uint64)

func (*NumericBSI) Top

func (b *NumericBSI) Top(k uint64, filter *roaring.Bitmap) *roaring.Bitmap

func (*NumericBSI) Unmarshal

func (b *NumericBSI) Unmarshal(data []byte) error

type StringBSI

type StringBSI struct {
	// contains filtered or unexported fields
}

func (*StringBSI) Bottom

func (b *StringBSI) Bottom(k uint64, filter *roaring.Bitmap) *roaring.Bitmap

func (*StringBSI) Clone

func (b *StringBSI) Clone() BitSlicedIndex

func (*StringBSI) Count

func (b *StringBSI) Count(filter *roaring.Bitmap) uint64

func (*StringBSI) Del

func (b *StringBSI) Del(k uint64) error

func (*StringBSI) Eq

func (b *StringBSI) Eq(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) Ge

func (b *StringBSI) Ge(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) Get

func (b *StringBSI) Get(k uint64) (interface{}, bool)

func (*StringBSI) Gt

func (b *StringBSI) Gt(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) Le

func (b *StringBSI) Le(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) Lt

func (b *StringBSI) Lt(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) Marshal

func (b *StringBSI) Marshal() ([]byte, error)

func (*StringBSI) Max

func (b *StringBSI) Max(filter *roaring.Bitmap) (interface{}, uint64)

func (*StringBSI) Min

func (b *StringBSI) Min(filter *roaring.Bitmap) (interface{}, uint64)

func (*StringBSI) Ne

func (b *StringBSI) Ne(e interface{}, filter *roaring.Bitmap) (*roaring.Bitmap, error)

func (*StringBSI) NotNull

func (b *StringBSI) NotNull(filter *roaring.Bitmap) *roaring.Bitmap

func (*StringBSI) NullCount

func (b *StringBSI) NullCount(filter *roaring.Bitmap) uint64

func (*StringBSI) Set

func (b *StringBSI) Set(k uint64, e interface{}) error

func (*StringBSI) Sum

func (b *StringBSI) Sum(filter *roaring.Bitmap) (interface{}, uint64)

func (*StringBSI) Top

func (b *StringBSI) Top(k uint64, filter *roaring.Bitmap) *roaring.Bitmap

func (*StringBSI) Unmarshal

func (b *StringBSI) Unmarshal(data []byte) error

type ValueType

type ValueType uint
const (
	UnsignedInt ValueType = iota
	SignedInt
	Float
	FixedLengthString
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL