bitmap

package
v0.0.0-...-ef9fe3a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SecondsPerDay = 60 * 60 * 24

Variables

This section is empty.

Functions

func RunOptimize

func RunOptimize(i Index)

Types

type BoolIndex

type BoolIndex struct {
	sync.RWMutex
	BM *roaring.Bitmap
}

func NewBoolIndex

func NewBoolIndex() *BoolIndex

func (*BoolIndex) Clear

func (a *BoolIndex) Clear(i uint32)

func (*BoolIndex) Lookup

func (a *BoolIndex) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (*BoolIndex) RunOptimize

func (a *BoolIndex) RunOptimize()

func (*BoolIndex) Set

func (a *BoolIndex) Set(i uint32, v interface{})

type DateIndex

type DateIndex struct {
	*Internal64Index
}

func (DateIndex) Lookup

func (s DateIndex) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (DateIndex) Set

func (s DateIndex) Set(i uint32, v interface{})

type Float32Index

type Float32Index struct {
	*Internal64Index
}

func (Float32Index) Lookup

func (s Float32Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Float32Index) Set

func (s Float32Index) Set(i uint32, v interface{})

type Float64Index

type Float64Index struct {
	*Internal64Index
}

func (Float64Index) Lookup

func (s Float64Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Float64Index) Set

func (s Float64Index) Set(i uint32, v interface{})

type Index

type Index interface {
	Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap
	Set(i uint32, val interface{})
	Clear(i uint32)
}

type Int32Index

type Int32Index struct {
	*Internal64Index
}

func (Int32Index) Lookup

func (s Int32Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Int32Index) Set

func (s Int32Index) Set(i uint32, v interface{})

type Int64Index

type Int64Index struct {
	*Internal64Index
}

func (Int64Index) Lookup

func (s Int64Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Int64Index) Set

func (s Int64Index) Set(i uint32, v interface{})

type Internal64Index

type Internal64Index struct {
	sync.RWMutex
	BMPS [1024]*roaring.Bitmap
}

func NewInternal64Index

func NewInternal64Index() *Internal64Index

func (*Internal64Index) Clear

func (s *Internal64Index) Clear(i uint32)

func (*Internal64Index) Ilookup

func (s *Internal64Index) Ilookup(column columns.Array, val uint64, def *roaring.Bitmap) *roaring.Bitmap

func (*Internal64Index) Iset

func (s *Internal64Index) Iset(i uint32, v uint64)

func (*Internal64Index) RunOptimize

func (s *Internal64Index) RunOptimize()

type NoIndex

type NoIndex struct{}

func (*NoIndex) Clear

func (n *NoIndex) Clear(i uint32)

func (*NoIndex) Lookup

func (n *NoIndex) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (*NoIndex) Set

func (n *NoIndex) Set(i uint32, val interface{})

type StringIndex

type StringIndex struct {
	*Internal64Index
}

func (StringIndex) Lookup

func (s StringIndex) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (StringIndex) Set

func (s StringIndex) Set(i uint32, v interface{})

type TimeIndex

type TimeIndex struct {
	*Internal64Index
}

func (TimeIndex) Lookup

func (s TimeIndex) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (TimeIndex) Set

func (s TimeIndex) Set(i uint32, v interface{})

type Uint32Index

type Uint32Index struct {
	*Internal64Index
}

func (Uint32Index) Lookup

func (s Uint32Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Uint32Index) Set

func (s Uint32Index) Set(i uint32, v interface{})

type Uint64Index

type Uint64Index struct {
	*Internal64Index
}

func (Uint64Index) Lookup

func (s Uint64Index) Lookup(column columns.Array, val interface{}, def *roaring.Bitmap) *roaring.Bitmap

func (Uint64Index) Set

func (s Uint64Index) Set(i uint32, v interface{})

Jump to

Keyboard shortcuts

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