dsl

package
v0.22.6 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBSI

func AddBSI(m *roaring.Bitmap, id, value uint64)

func AddBoolean

func AddBoolean(m *roaring.Bitmap, id uint64, value bool)

func AddMutex

func AddMutex(m *roaring.Bitmap, id uint64, value uint64)

func CompareValueBSI

func CompareValueBSI(
	tx *rbf.Tx, view string,
	shard uint64, op Operation,
	valueOrStart uint64, end uint64,
	columns *rows.Row) (*rows.Row, error)

CompareValueBSI compares value. Values should be in the range of the BSI (max, min). If the value is outside the range, the result might erroneous. The operation parameter indicates the type of comparison to be made. For all operations with the exception of RANGE, the value to be compared is specified by valueOrStart. For the RANGE parameter the comparison criteria is >= valueOrStart and <= end.

Returns column ID's satisfying the operation.

func ExtractValuesBSI

func ExtractValuesBSI(tx *rbf.Tx, view string, shard uint64, exists *rows.Row, f func(column uint64, value uint64) error) error

ExtractValuesBSI finds all values set in exists columns and calls f with the found column and value.

Assumes exists columns are in the bitmap.

func ExtractValuesBSIValidate

func ExtractValuesBSIValidate(tx *rbf.Tx, view string, shard uint64, columns *rows.Row, f func(column, value uint64) error) error

ExtractValuesBSIValidate is like ExtractValuesBSI but checks if columns exists.

func False

func False(tx *rbf.Tx, view string, shard uint64, columns *rows.Row) (*rows.Row, error)

func Row

func Row(tx *rbf.Tx, view string, shard uint64, rowID uint64) (*rows.Row, error)

func Rows

func Rows(tx *rbf.Tx, view string, start uint64, cb func(row uint64) error, filters ...roaring.BitmapFilter) error

func True

func True(tx *rbf.Tx, view string, shard uint64, columns *rows.Row) (*rows.Row, error)

Types

type Operation

type Operation int

Operation identifier

const (
	// LT less than
	LT Operation = 1 + iota
	// LE less than or equal
	LE
	// EQ equal
	EQ
	NEQ
	// GE greater than or equal
	GE
	// GT greater than
	GT
	// RANGE range
	RANGE
)

Jump to

Keyboard shortcuts

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