compute

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v0.8.0

func Compare(a, b []byte, t types.T, scale1, scale2 int32) int

func CompareBool

func CompareBool(a, b bool) int

func CompareBytes

func CompareBytes(a, b []byte) int

func CompareGeneric

func CompareGeneric(a, b any, t types.T) int

func CompareOrdered

func CompareOrdered[T types.OrderedT](a, b T) int

func GetDecimal128MinAndMax added in v0.8.0

func GetDecimal128MinAndMax(vs []types.Decimal128) (minv, maxv types.Decimal128)

func GetDecimal64MinAndMax added in v0.8.0

func GetDecimal64MinAndMax(vs []types.Decimal64) (minv, maxv types.Decimal64)

func GetOffsetByVal

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

func GetOffsetMapBeforeApplyDeletes added in v0.6.0

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

func GetOffsetOfBytes added in v0.8.0

func GetOffsetOfBytes(
	data *vector.Vector,
	val []byte,
	skipmask *nulls.Bitmap,
) (offset int, exist bool)

func GetOffsetOfOrdered

func GetOffsetOfOrdered[T types.OrderedT](column []T, val T, skipmask *nulls.Bitmap) (offset int, exist bool)

func GetOffsetWithFunc

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

func GetOrderedMinAndMax added in v0.8.0

func GetOrderedMinAndMax[T types.OrderedT](vs ...T) (minv, maxv T)

func ShuffleByDeletes

func ShuffleByDeletes(inputDeletes, deletes *nulls.Bitmap) (outDeletes *nulls.Bitmap)

Types

This section is empty.

Jump to

Keyboard shortcuts

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