compute

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinarySearch added in v0.5.1

func BinarySearch[T constraints.Ordered](a []T, x T) int

func BinarySearchTs added in v0.6.0

func BinarySearchTs(a []types.TS, x types.TS) int

func CompareBool

func CompareBool(a, b bool) int64

func CompareBytes

func CompareBytes(a, b any) int64

func CompareGeneric

func CompareGeneric(a, b any, t types.Type) int64

func CompareOrdered

func CompareOrdered[T types.OrderedT](v1, v2 any) int64

func EstimateSize

func EstimateSize(bat *containers.Batch, offset, length uint32) uint64

func GetOffsetByVal

func GetOffsetByVal(data containers.Vector, v any, skipmask *roaring.Bitmap) (offset int, exist bool)

func GetOffsetMapBeforeApplyDeletes added in v0.6.0

func GetOffsetMapBeforeApplyDeletes(deletes *roaring.Bitmap) []uint32

func GetOffsetOfOrdered

func GetOffsetOfOrdered[T types.OrderedT](vs, v any, skipmask *roaring.Bitmap) (offset int, exist bool)

func GetOffsetWithFunc

func GetOffsetWithFunc[T any](
	vals []T,
	val T,
	compare func(a, b T) int64,
	skipmask *roaring.Bitmap,
) (offset int, exist bool)

func ShuffleByDeletes

func ShuffleByDeletes(deleteMask, deletes *roaring.Bitmap) (destDelets *roaring.Bitmap)

func ShuffleOffset added in v0.6.0

func ShuffleOffset(offset uint32, deletes *roaring.Bitmap) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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