package utils
import "github.com/apache/arrow/go/v11/internal/utils"
Index ¶
- Variables
- func GetMinMaxInt16(v []int16) (min, max int16)
- func GetMinMaxInt32(v []int32) (min, max int32)
- func GetMinMaxInt64(v []int64) (min, max int64)
- func GetMinMaxInt8(v []int8) (min, max int8)
- func GetMinMaxUint16(v []uint16) (min, max uint16)
- func GetMinMaxUint32(v []uint32) (min, max uint32)
- func GetMinMaxUint64(v []uint64) (min, max uint64)
- func GetMinMaxUint8(v []uint8) (min, max uint8)
- func Max(a, b int64) int64
- func MaxInt(a, b int) int
- func Min(a, b int64) int64
- func MinInt(a, b int) int
- func NewBufferedReader(rd io.Reader, sz int) *bufferedReader
- func TransposeInts(src, dest interface{}, mapping []int32) error
- func TransposeIntsBuffers(inType, outType arrow.DataType, indata, outdata []byte, inOffset, outOffset int, length int, transposeMap []int32) error
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
Max is a convenience Max function for int64
func MaxInt ¶
MaxInt is a convenience Max function for int
func Min ¶
Min is a convenience Min function for int64
func MinInt ¶
MinInt is a convenience Min function for int
func NewBufferedReader ¶
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 ¶
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
- v11.0.0 (latest)
- Published
- Jan 18, 2023
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 8 hours ago –
Tools for package owners.