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: 0

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