query

package
v0.0.0-...-8a2c9d0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_FILTER_SIZE int64 = 1024

Functions

func HandleJoin

func HandleJoin(d *db.Database, payload string, w io.Writer) (err error)

Handle join.

func Join

func Join(
	ctx context.Context,
	leftTable db.Index,
	rightTable db.Index,
	joinOnLeftKey bool,
	joinOnRightKey bool,
) (chan EntryPair, context.Context, *errgroup.Group, func(), error)

Join leftTable on rightTable using Grace Hash Join.

func QueryRepl

func QueryRepl(d *db.Database) *repl.REPL

Query REPL.

Types

type BloomFilter

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

func CreateFilter

func CreateFilter(size int64) *BloomFilter

CreateFilter initializes a BloomFilter with the given size.

func (*BloomFilter) Contains

func (filter *BloomFilter) Contains(key int64) bool

Contains checks if the given key can be found in the bloom filter/

func (*BloomFilter) Insert

func (filter *BloomFilter) Insert(key int64)

Insert adds an element into the bloom filter.

type EntryPair

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

Entry pair struct - output of a join.

Jump to

Keyboard shortcuts

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