arrowutil

package
v0.138.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BooleanCompare added in v0.117.1

func BooleanCompare(x, y *array.Boolean, i, j int) int

func BooleanCompareDesc added in v0.117.1

func BooleanCompareDesc(x, y *array.Boolean, i, j int) int

func Compare added in v0.117.1

func Compare(x, y array.Interface, i, j int) int

Compare will compare two values in the various arrays. The result will be 0 if x[i] == y[j], -1 if x[i] < y[j], and +1 if x[i] > y[j]. A null value is always less than every non-null value.

func CompareDesc added in v0.117.1

func CompareDesc(x, y array.Interface, i, j int) int

CompareDesc will compare two values in the various arrays. The result will be 0 if x[i] == y[j], -1 if x[i] > y[j], and +1 if x[i] < y[j]. A null value is always greater than every non-null value.

func CopyBooleanValue added in v0.117.1

func CopyBooleanValue(b *array.BooleanBuilder, arr *array.Boolean, i int)

func CopyBooleansByIndexTo added in v0.114.0

func CopyBooleansByIndexTo(b *array.BooleanBuilder, arr *array.Boolean, indices *array.Int)

func CopyBooleansTo added in v0.114.0

func CopyBooleansTo(b *array.BooleanBuilder, arr *array.Boolean)

func CopyByIndexTo added in v0.114.0

func CopyByIndexTo(b array.Builder, arr array.Interface, indices *array.Int)

CopyByIndexTo will copy the contents of the array at the given indices into a new array builder.

func CopyFloatValue added in v0.125.0

func CopyFloatValue(b *array.FloatBuilder, arr *array.Float, i int)

func CopyFloatsByIndexTo added in v0.125.0

func CopyFloatsByIndexTo(b *array.FloatBuilder, arr *array.Float, indices *array.Int)

func CopyFloatsTo added in v0.125.0

func CopyFloatsTo(b *array.FloatBuilder, arr *array.Float)

func CopyIntValue added in v0.125.0

func CopyIntValue(b *array.IntBuilder, arr *array.Int, i int)

func CopyIntsByIndexTo added in v0.125.0

func CopyIntsByIndexTo(b *array.IntBuilder, arr *array.Int, indices *array.Int)

func CopyIntsTo added in v0.125.0

func CopyIntsTo(b *array.IntBuilder, arr *array.Int)

func CopyStringValue added in v0.117.1

func CopyStringValue(b *array.StringBuilder, arr *array.String, i int)

func CopyStringsByIndexTo added in v0.114.0

func CopyStringsByIndexTo(b *array.StringBuilder, arr *array.String, indices *array.Int)

func CopyStringsTo added in v0.114.0

func CopyStringsTo(b *array.StringBuilder, arr *array.String)

func CopyTo added in v0.114.0

func CopyTo(b array.Builder, arr array.Interface)

CopyTo will copy the contents of the array into a new array builder.

func CopyUintValue added in v0.125.0

func CopyUintValue(b *array.UintBuilder, arr *array.Uint, i int)

func CopyUintsByIndexTo added in v0.125.0

func CopyUintsByIndexTo(b *array.UintBuilder, arr *array.Uint, indices *array.Int)

func CopyUintsTo added in v0.125.0

func CopyUintsTo(b *array.UintBuilder, arr *array.Uint)

func CopyValue added in v0.117.1

func CopyValue(b array.Builder, arr array.Interface, i int)

CopyValue will copy an individual value from the array into the builder.

func Filter added in v0.56.0

func Filter(arr array.Interface, bitset []byte, mem memory.Allocator) array.Interface

func FilterBooleans added in v0.56.0

func FilterBooleans(arr *array.Boolean, bitset []byte, mem memory.Allocator) *array.Boolean

func FilterFloats added in v0.125.0

func FilterFloats(arr *array.Float, bitset []byte, mem memory.Allocator) *array.Float

func FilterInts added in v0.125.0

func FilterInts(arr *array.Int, bitset []byte, mem memory.Allocator) *array.Int

func FilterStrings added in v0.56.0

func FilterStrings(arr *array.String, bitset []byte, mem memory.Allocator) *array.String

func FilterUints added in v0.125.0

func FilterUints(arr *array.Uint, bitset []byte, mem memory.Allocator) *array.Uint

func FloatCompare added in v0.125.0

func FloatCompare(x, y *array.Float, i, j int) int

func FloatCompareDesc added in v0.125.0

func FloatCompareDesc(x, y *array.Float, i, j int) int

func IntCompare added in v0.125.0

func IntCompare(x, y *array.Int, i, j int) int

func IntCompareDesc added in v0.125.0

func IntCompareDesc(x, y *array.Int, i, j int) int

func NewArrayValue added in v0.77.0

func NewArrayValue(arr array.Interface, typ flux.ColType) values.Array

func NewBooleanArrayValue added in v0.77.0

func NewBooleanArrayValue(arr *array.Boolean) values.Array

func NewBooleanBuilder added in v0.55.0

func NewBooleanBuilder(mem memory.Allocator) *array.BooleanBuilder

func NewFloatArrayValue added in v0.125.0

func NewFloatArrayValue(arr *array.Float) values.Array

func NewFloatBuilder added in v0.125.0

func NewFloatBuilder(mem memory.Allocator) *array.FloatBuilder

func NewIntArrayValue added in v0.125.0

func NewIntArrayValue(arr *array.Int) values.Array

func NewIntBuilder added in v0.125.0

func NewIntBuilder(mem memory.Allocator) *array.IntBuilder

func NewStringArrayValue added in v0.77.0

func NewStringArrayValue(arr *array.String) values.Array

func NewStringBuilder added in v0.55.0

func NewStringBuilder(mem memory.Allocator) *array.StringBuilder

func NewUintArrayValue added in v0.125.0

func NewUintArrayValue(arr *array.Uint) values.Array

func NewUintBuilder added in v0.125.0

func NewUintBuilder(mem memory.Allocator) *array.UintBuilder

func StringCompare added in v0.117.1

func StringCompare(x, y *array.String, i, j int) int

func StringCompareDesc added in v0.117.1

func StringCompareDesc(x, y *array.String, i, j int) int

func UintCompare added in v0.125.0

func UintCompare(x, y *array.Uint, i, j int) int

func UintCompareDesc added in v0.125.0

func UintCompareDesc(x, y *array.Uint, i, j int) int

Types

type BooleanArrayValue added in v0.77.0

type BooleanArrayValue struct {
	// contains filtered or unexported fields
}

func (BooleanArrayValue) Append added in v0.77.0

func (v BooleanArrayValue) Append(value values.Value)

func (BooleanArrayValue) Array added in v0.77.0

func (v BooleanArrayValue) Array() values.Array

func (BooleanArrayValue) Bool added in v0.77.0

func (v BooleanArrayValue) Bool() bool

func (BooleanArrayValue) Bytes added in v0.77.0

func (v BooleanArrayValue) Bytes() []byte

func (BooleanArrayValue) Dict added in v0.96.0

func (BooleanArrayValue) Duration added in v0.77.0

func (v BooleanArrayValue) Duration() values.Duration

func (BooleanArrayValue) Equal added in v0.77.0

func (v BooleanArrayValue) Equal(other values.Value) bool

func (BooleanArrayValue) Float added in v0.77.0

func (v BooleanArrayValue) Float() float64

func (BooleanArrayValue) Function added in v0.77.0

func (v BooleanArrayValue) Function() values.Function

func (BooleanArrayValue) Get added in v0.77.0

func (v BooleanArrayValue) Get(i int) values.Value

func (BooleanArrayValue) Int added in v0.77.0

func (v BooleanArrayValue) Int() int64

func (BooleanArrayValue) IsNull added in v0.77.0

func (v BooleanArrayValue) IsNull() bool

func (BooleanArrayValue) Len added in v0.77.0

func (v BooleanArrayValue) Len() int

func (BooleanArrayValue) Object added in v0.77.0

func (v BooleanArrayValue) Object() values.Object

func (BooleanArrayValue) Range added in v0.77.0

func (v BooleanArrayValue) Range(f func(i int, v values.Value))

func (BooleanArrayValue) Regexp added in v0.77.0

func (v BooleanArrayValue) Regexp() *regexp.Regexp

func (BooleanArrayValue) Set added in v0.77.0

func (v BooleanArrayValue) Set(i int, value values.Value)

func (BooleanArrayValue) Sort added in v0.77.0

func (v BooleanArrayValue) Sort(f func(i values.Value, j values.Value) bool)

func (BooleanArrayValue) Str added in v0.77.0

func (v BooleanArrayValue) Str() string

func (BooleanArrayValue) Time added in v0.77.0

func (v BooleanArrayValue) Time() values.Time

func (BooleanArrayValue) Type added in v0.77.0

func (BooleanArrayValue) UInt added in v0.77.0

func (v BooleanArrayValue) UInt() uint64

type BooleanIterator added in v0.55.0

type BooleanIterator struct {
	Values []*array.Boolean
	// contains filtered or unexported fields
}

func IterateBooleans added in v0.55.0

func IterateBooleans(arrs []array.Interface) BooleanIterator

func (*BooleanIterator) IsEmpty added in v0.55.0

func (i *BooleanIterator) IsEmpty() bool

IsEmpty returns true if the iterator has no values to read.

func (*BooleanIterator) IsNull added in v0.55.0

func (i *BooleanIterator) IsNull() bool

IsNull returns if the current value is null.

func (*BooleanIterator) IsValid added in v0.55.0

func (i *BooleanIterator) IsValid() bool

IsValid returns if the current value is valid.

func (*BooleanIterator) Next added in v0.55.0

func (i *BooleanIterator) Next() bool

Next will move to the next value. It will return false if there are no more values to be read. This will initialize the iterator if this is the first time it is called and return true if there is at least one element.

func (*BooleanIterator) Value added in v0.55.0

func (i *BooleanIterator) Value() bool

Value returns the current value in the iterator.

type CompareFunc added in v0.117.1

type CompareFunc func(x, y array.Interface, i, j int) int

CompareFunc defines the interface for a comparison function. The comparison function should return 0 for equivalent values, -1 if x[i] is before y[j], and +1 if x[i] is after y[j].

type FloatArrayValue added in v0.125.0

type FloatArrayValue struct {
	// contains filtered or unexported fields
}

func (FloatArrayValue) Append added in v0.125.0

func (v FloatArrayValue) Append(value values.Value)

func (FloatArrayValue) Array added in v0.125.0

func (v FloatArrayValue) Array() values.Array

func (FloatArrayValue) Bool added in v0.125.0

func (v FloatArrayValue) Bool() bool

func (FloatArrayValue) Bytes added in v0.125.0

func (v FloatArrayValue) Bytes() []byte

func (FloatArrayValue) Dict added in v0.125.0

func (FloatArrayValue) Duration added in v0.125.0

func (v FloatArrayValue) Duration() values.Duration

func (FloatArrayValue) Equal added in v0.125.0

func (v FloatArrayValue) Equal(other values.Value) bool

func (FloatArrayValue) Float added in v0.125.0

func (v FloatArrayValue) Float() float64

func (FloatArrayValue) Function added in v0.125.0

func (v FloatArrayValue) Function() values.Function

func (FloatArrayValue) Get added in v0.125.0

func (v FloatArrayValue) Get(i int) values.Value

func (FloatArrayValue) Int added in v0.125.0

func (v FloatArrayValue) Int() int64

func (FloatArrayValue) IsNull added in v0.125.0

func (v FloatArrayValue) IsNull() bool

func (FloatArrayValue) Len added in v0.125.0

func (v FloatArrayValue) Len() int

func (FloatArrayValue) Object added in v0.125.0

func (v FloatArrayValue) Object() values.Object

func (FloatArrayValue) Range added in v0.125.0

func (v FloatArrayValue) Range(f func(i int, v values.Value))

func (FloatArrayValue) Regexp added in v0.125.0

func (v FloatArrayValue) Regexp() *regexp.Regexp

func (FloatArrayValue) Set added in v0.125.0

func (v FloatArrayValue) Set(i int, value values.Value)

func (FloatArrayValue) Sort added in v0.125.0

func (v FloatArrayValue) Sort(f func(i values.Value, j values.Value) bool)

func (FloatArrayValue) Str added in v0.125.0

func (v FloatArrayValue) Str() string

func (FloatArrayValue) Time added in v0.125.0

func (v FloatArrayValue) Time() values.Time

func (FloatArrayValue) Type added in v0.125.0

func (FloatArrayValue) UInt added in v0.125.0

func (v FloatArrayValue) UInt() uint64

type FloatIterator added in v0.125.0

type FloatIterator struct {
	Values []*array.Float
	// contains filtered or unexported fields
}

func IterateFloats added in v0.125.0

func IterateFloats(arrs []array.Interface) FloatIterator

func (*FloatIterator) IsEmpty added in v0.125.0

func (i *FloatIterator) IsEmpty() bool

IsEmpty returns true if the iterator has no values to read.

func (*FloatIterator) IsNull added in v0.125.0

func (i *FloatIterator) IsNull() bool

IsNull returns if the current value is null.

func (*FloatIterator) IsValid added in v0.125.0

func (i *FloatIterator) IsValid() bool

IsValid returns if the current value is valid.

func (*FloatIterator) Next added in v0.125.0

func (i *FloatIterator) Next() bool

Next will move to the next value. It will return false if there are no more values to be read. This will initialize the iterator if this is the first time it is called and return true if there is at least one element.

func (*FloatIterator) Value added in v0.125.0

func (i *FloatIterator) Value() float64

Value returns the current value in the iterator.

type IntArrayValue added in v0.125.0

type IntArrayValue struct {
	// contains filtered or unexported fields
}

func (IntArrayValue) Append added in v0.125.0

func (v IntArrayValue) Append(value values.Value)

func (IntArrayValue) Array added in v0.125.0

func (v IntArrayValue) Array() values.Array

func (IntArrayValue) Bool added in v0.125.0

func (v IntArrayValue) Bool() bool

func (IntArrayValue) Bytes added in v0.125.0

func (v IntArrayValue) Bytes() []byte

func (IntArrayValue) Dict added in v0.125.0

func (v IntArrayValue) Dict() values.Dictionary

func (IntArrayValue) Duration added in v0.125.0

func (v IntArrayValue) Duration() values.Duration

func (IntArrayValue) Equal added in v0.125.0

func (v IntArrayValue) Equal(other values.Value) bool

func (IntArrayValue) Float added in v0.125.0

func (v IntArrayValue) Float() float64

func (IntArrayValue) Function added in v0.125.0

func (v IntArrayValue) Function() values.Function

func (IntArrayValue) Get added in v0.125.0

func (v IntArrayValue) Get(i int) values.Value

func (IntArrayValue) Int added in v0.125.0

func (v IntArrayValue) Int() int64

func (IntArrayValue) IsNull added in v0.125.0

func (v IntArrayValue) IsNull() bool

func (IntArrayValue) Len added in v0.125.0

func (v IntArrayValue) Len() int

func (IntArrayValue) Object added in v0.125.0

func (v IntArrayValue) Object() values.Object

func (IntArrayValue) Range added in v0.125.0

func (v IntArrayValue) Range(f func(i int, v values.Value))

func (IntArrayValue) Regexp added in v0.125.0

func (v IntArrayValue) Regexp() *regexp.Regexp

func (IntArrayValue) Set added in v0.125.0

func (v IntArrayValue) Set(i int, value values.Value)

func (IntArrayValue) Sort added in v0.125.0

func (v IntArrayValue) Sort(f func(i values.Value, j values.Value) bool)

func (IntArrayValue) Str added in v0.125.0

func (v IntArrayValue) Str() string

func (IntArrayValue) Time added in v0.125.0

func (v IntArrayValue) Time() values.Time

func (IntArrayValue) Type added in v0.125.0

func (v IntArrayValue) Type() semantic.MonoType

func (IntArrayValue) UInt added in v0.125.0

func (v IntArrayValue) UInt() uint64

type IntIterator added in v0.125.0

type IntIterator struct {
	Values []*array.Int
	// contains filtered or unexported fields
}

func IterateInts added in v0.125.0

func IterateInts(arrs []array.Interface) IntIterator

func (*IntIterator) IsEmpty added in v0.125.0

func (i *IntIterator) IsEmpty() bool

IsEmpty returns true if the iterator has no values to read.

func (*IntIterator) IsNull added in v0.125.0

func (i *IntIterator) IsNull() bool

IsNull returns if the current value is null.

func (*IntIterator) IsValid added in v0.125.0

func (i *IntIterator) IsValid() bool

IsValid returns if the current value is valid.

func (*IntIterator) Next added in v0.125.0

func (i *IntIterator) Next() bool

Next will move to the next value. It will return false if there are no more values to be read. This will initialize the iterator if this is the first time it is called and return true if there is at least one element.

func (*IntIterator) Value added in v0.125.0

func (i *IntIterator) Value() int64

Value returns the current value in the iterator.

type StringArrayValue added in v0.77.0

type StringArrayValue struct {
	// contains filtered or unexported fields
}

func (StringArrayValue) Append added in v0.77.0

func (v StringArrayValue) Append(value values.Value)

func (StringArrayValue) Array added in v0.77.0

func (v StringArrayValue) Array() values.Array

func (StringArrayValue) Bool added in v0.77.0

func (v StringArrayValue) Bool() bool

func (StringArrayValue) Bytes added in v0.77.0

func (v StringArrayValue) Bytes() []byte

func (StringArrayValue) Dict added in v0.96.0

func (StringArrayValue) Duration added in v0.77.0

func (v StringArrayValue) Duration() values.Duration

func (StringArrayValue) Equal added in v0.77.0

func (v StringArrayValue) Equal(other values.Value) bool

func (StringArrayValue) Float added in v0.77.0

func (v StringArrayValue) Float() float64

func (StringArrayValue) Function added in v0.77.0

func (v StringArrayValue) Function() values.Function

func (StringArrayValue) Get added in v0.77.0

func (v StringArrayValue) Get(i int) values.Value

func (StringArrayValue) Int added in v0.77.0

func (v StringArrayValue) Int() int64

func (StringArrayValue) IsNull added in v0.77.0

func (v StringArrayValue) IsNull() bool

func (StringArrayValue) Len added in v0.77.0

func (v StringArrayValue) Len() int

func (StringArrayValue) Object added in v0.77.0

func (v StringArrayValue) Object() values.Object

func (StringArrayValue) Range added in v0.77.0

func (v StringArrayValue) Range(f func(i int, v values.Value))

func (StringArrayValue) Regexp added in v0.77.0

func (v StringArrayValue) Regexp() *regexp.Regexp

func (StringArrayValue) Set added in v0.77.0

func (v StringArrayValue) Set(i int, value values.Value)

func (StringArrayValue) Sort added in v0.77.0

func (v StringArrayValue) Sort(f func(i values.Value, j values.Value) bool)

func (StringArrayValue) Str added in v0.77.0

func (v StringArrayValue) Str() string

func (StringArrayValue) Time added in v0.77.0

func (v StringArrayValue) Time() values.Time

func (StringArrayValue) Type added in v0.77.0

func (StringArrayValue) UInt added in v0.77.0

func (v StringArrayValue) UInt() uint64

type StringIterator added in v0.55.0

type StringIterator struct {
	Values []*array.String
	// contains filtered or unexported fields
}

func IterateStrings added in v0.55.0

func IterateStrings(arrs []array.Interface) StringIterator

func (*StringIterator) IsEmpty added in v0.55.0

func (i *StringIterator) IsEmpty() bool

IsEmpty returns true if the iterator has no values to read.

func (*StringIterator) IsNull added in v0.55.0

func (i *StringIterator) IsNull() bool

IsNull returns if the current value is null.

func (*StringIterator) IsValid added in v0.55.0

func (i *StringIterator) IsValid() bool

IsValid returns if the current value is valid.

func (*StringIterator) Next added in v0.55.0

func (i *StringIterator) Next() bool

Next will move to the next value. It will return false if there are no more values to be read. This will initialize the iterator if this is the first time it is called and return true if there is at least one element.

func (*StringIterator) Value added in v0.125.0

func (i *StringIterator) Value() string

Value returns the current value in the iterator.

type UintArrayValue added in v0.125.0

type UintArrayValue struct {
	// contains filtered or unexported fields
}

func (UintArrayValue) Append added in v0.125.0

func (v UintArrayValue) Append(value values.Value)

func (UintArrayValue) Array added in v0.125.0

func (v UintArrayValue) Array() values.Array

func (UintArrayValue) Bool added in v0.125.0

func (v UintArrayValue) Bool() bool

func (UintArrayValue) Bytes added in v0.125.0

func (v UintArrayValue) Bytes() []byte

func (UintArrayValue) Dict added in v0.125.0

func (v UintArrayValue) Dict() values.Dictionary

func (UintArrayValue) Duration added in v0.125.0

func (v UintArrayValue) Duration() values.Duration

func (UintArrayValue) Equal added in v0.125.0

func (v UintArrayValue) Equal(other values.Value) bool

func (UintArrayValue) Float added in v0.125.0

func (v UintArrayValue) Float() float64

func (UintArrayValue) Function added in v0.125.0

func (v UintArrayValue) Function() values.Function

func (UintArrayValue) Get added in v0.125.0

func (v UintArrayValue) Get(i int) values.Value

func (UintArrayValue) Int added in v0.125.0

func (v UintArrayValue) Int() int64

func (UintArrayValue) IsNull added in v0.125.0

func (v UintArrayValue) IsNull() bool

func (UintArrayValue) Len added in v0.125.0

func (v UintArrayValue) Len() int

func (UintArrayValue) Object added in v0.125.0

func (v UintArrayValue) Object() values.Object

func (UintArrayValue) Range added in v0.125.0

func (v UintArrayValue) Range(f func(i int, v values.Value))

func (UintArrayValue) Regexp added in v0.125.0

func (v UintArrayValue) Regexp() *regexp.Regexp

func (UintArrayValue) Set added in v0.125.0

func (v UintArrayValue) Set(i int, value values.Value)

func (UintArrayValue) Sort added in v0.125.0

func (v UintArrayValue) Sort(f func(i values.Value, j values.Value) bool)

func (UintArrayValue) Str added in v0.125.0

func (v UintArrayValue) Str() string

func (UintArrayValue) Time added in v0.125.0

func (v UintArrayValue) Time() values.Time

func (UintArrayValue) Type added in v0.125.0

func (v UintArrayValue) Type() semantic.MonoType

func (UintArrayValue) UInt added in v0.125.0

func (v UintArrayValue) UInt() uint64

type UintIterator added in v0.125.0

type UintIterator struct {
	Values []*array.Uint
	// contains filtered or unexported fields
}

func IterateUints added in v0.125.0

func IterateUints(arrs []array.Interface) UintIterator

func (*UintIterator) IsEmpty added in v0.125.0

func (i *UintIterator) IsEmpty() bool

IsEmpty returns true if the iterator has no values to read.

func (*UintIterator) IsNull added in v0.125.0

func (i *UintIterator) IsNull() bool

IsNull returns if the current value is null.

func (*UintIterator) IsValid added in v0.125.0

func (i *UintIterator) IsValid() bool

IsValid returns if the current value is valid.

func (*UintIterator) Next added in v0.125.0

func (i *UintIterator) Next() bool

Next will move to the next value. It will return false if there are no more values to be read. This will initialize the iterator if this is the first time it is called and return true if there is at least one element.

func (*UintIterator) Value added in v0.125.0

func (i *UintIterator) Value() uint64

Value returns the current value in the iterator.

Jump to

Keyboard shortcuts

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