package utils

import "github.com/apache/arrow/go/v10/internal/utils"

Index

Variables

var (
	ToLEInt16   = func(x int16) int16 { return x }
	ToLEUint16  = func(x uint16) uint16 { return x }
	ToLEUint32  = func(x uint32) uint32 { return x }
	ToLEUint64  = func(x uint64) uint64 { return x }
	ToLEInt32   = func(x int32) int32 { return x }
	ToLEInt64   = func(x int64) int64 { return x }
	ToLEFloat32 = func(x float32) float32 { return x }
	ToLEFloat64 = func(x float64) float64 { return x }
)

Functions

func GetMinMaxInt16

func GetMinMaxInt16(v []int16) (min, max int16)

GetMinMaxInt16 returns the min and max for a int16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxInt32

func GetMinMaxInt32(v []int32) (min, max int32)

GetMinMaxInt32 returns the min and max for a int32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxInt64

func GetMinMaxInt64(v []int64) (min, max int64)

GetMinMaxInt64 returns the min and max for a int64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxInt8

func GetMinMaxInt8(v []int8) (min, max int8)

GetMinMaxInt8 returns the min and max for a int8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxUint16

func GetMinMaxUint16(v []uint16) (min, max uint16)

GetMinMaxUint16 returns the min and max for a uint16 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxUint32

func GetMinMaxUint32(v []uint32) (min, max uint32)

GetMinMaxUint32 returns the min and max for a uint32 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxUint64

func GetMinMaxUint64(v []uint64) (min, max uint64)

GetMinMaxUint64 returns the min and max for a uint64 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func GetMinMaxUint8

func GetMinMaxUint8(v []uint8) (min, max uint8)

GetMinMaxUint8 returns the min and max for a uint8 slice, using AVX2 or SSE4 cpu extensions if available, falling back to a pure go implementation if they are unavailable or built with the noasm tag.

func Max

func Max(a, b int64) int64

Max is a convenience Max function for int64

func MaxInt

func MaxInt(a, b int) int

MaxInt is a convenience Max function for int

func Min

func Min(a, b int64) int64

Min is a convenience Min function for int64

func MinInt

func MinInt(a, b int) int

MinInt is a convenience Min function for int

func NewBufferedReader

func NewBufferedReader(rd io.Reader, sz int) *bufferedReader

NewBufferedReader returns a buffered reader with similar semantics to bufio.Reader except Peek will expand the internal buffer if needed rather than return an error.

func TransposeInts

func TransposeInts(src, dest interface{}, mapping []int32) error

TransposeInts expects two integral slices and the values they map to. Returning an error if either src or dest are not an integral type.

func TransposeIntsBuffers

func TransposeIntsBuffers(inType, outType arrow.DataType, indata, outdata []byte, inOffset, outOffset int, length int, transposeMap []int32) error

TransposeIntsBuffers takes the data-types, byte buffers, and offsets of a source and destination buffer to perform TransposeInts on with the provided mapping data.

Source Files

buf_reader.go endians_default.go math.go min_max.go transpose_ints.go transpose_ints_def.go

Version
v10.0.1 (latest)
Published
Nov 15, 2022
Platform
js/wasm
Imports
6 packages
Last checked
2 days ago

Tools for package owners.