arrowutil

package
v0.117.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 9 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.Int64)

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.Int64)

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

func CopyFloat64Value added in v0.117.1

func CopyFloat64Value(b *array.Float64Builder, arr *array.Float64, i int)

func CopyFloat64sByIndexTo added in v0.114.0

func CopyFloat64sByIndexTo(b *array.Float64Builder, arr *array.Float64, indices *array.Int64)

func CopyFloat64sTo added in v0.114.0

func CopyFloat64sTo(b *array.Float64Builder, arr *array.Float64)

func CopyInt64Value added in v0.117.1

func CopyInt64Value(b *array.Int64Builder, arr *array.Int64, i int)

func CopyInt64sByIndexTo added in v0.114.0

func CopyInt64sByIndexTo(b *array.Int64Builder, arr *array.Int64, indices *array.Int64)

func CopyInt64sTo added in v0.114.0

func CopyInt64sTo(b *array.Int64Builder, arr *array.Int64)

func CopyStringValue added in v0.117.1

func CopyStringValue(b *array.BinaryBuilder, arr *array.Binary, i int)

func CopyStringsByIndexTo added in v0.114.0

func CopyStringsByIndexTo(b *array.BinaryBuilder, arr *array.Binary, indices *array.Int64)

func CopyStringsTo added in v0.114.0

func CopyStringsTo(b *array.BinaryBuilder, arr *array.Binary)

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 CopyUint64Value added in v0.117.1

func CopyUint64Value(b *array.Uint64Builder, arr *array.Uint64, i int)

func CopyUint64sByIndexTo added in v0.114.0

func CopyUint64sByIndexTo(b *array.Uint64Builder, arr *array.Uint64, indices *array.Int64)

func CopyUint64sTo added in v0.114.0

func CopyUint64sTo(b *array.Uint64Builder, arr *array.Uint64)

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 FilterFloat64s added in v0.56.0

func FilterFloat64s(arr *array.Float64, bitset []byte, mem memory.Allocator) *array.Float64

func FilterInt64s added in v0.56.0

func FilterInt64s(arr *array.Int64, bitset []byte, mem memory.Allocator) *array.Int64

func FilterStrings added in v0.56.0

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

func FilterUint64s added in v0.56.0

func FilterUint64s(arr *array.Uint64, bitset []byte, mem memory.Allocator) *array.Uint64

func Float64Compare added in v0.117.1

func Float64Compare(x, y *array.Float64, i, j int) int

func Float64CompareDesc added in v0.117.1

func Float64CompareDesc(x, y *array.Float64, i, j int) int

func Int64Compare added in v0.117.1

func Int64Compare(x, y *array.Int64, i, j int) int

func Int64CompareDesc added in v0.117.1

func Int64CompareDesc(x, y *array.Int64, 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 NewFloat64ArrayValue added in v0.77.0

func NewFloat64ArrayValue(arr *array.Float64) values.Array

func NewFloat64Builder added in v0.55.0

func NewFloat64Builder(mem memory.Allocator) *array.Float64Builder

func NewInt64ArrayValue added in v0.77.0

func NewInt64ArrayValue(arr *array.Int64) values.Array

func NewInt64Builder added in v0.55.0

func NewInt64Builder(mem memory.Allocator) *array.Int64Builder

func NewStringArrayValue added in v0.77.0

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

func NewStringBuilder added in v0.55.0

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

func NewUint64ArrayValue added in v0.77.0

func NewUint64ArrayValue(arr *array.Uint64) values.Array

func NewUint64Builder added in v0.55.0

func NewUint64Builder(mem memory.Allocator) *array.Uint64Builder

func StringCompare added in v0.117.1

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

func StringCompareDesc added in v0.117.1

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

func Uint64Compare added in v0.117.1

func Uint64Compare(x, y *array.Uint64, i, j int) int

func Uint64CompareDesc added in v0.117.1

func Uint64CompareDesc(x, y *array.Uint64, 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 Float64ArrayValue added in v0.77.0

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

func (Float64ArrayValue) Append added in v0.77.0

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

func (Float64ArrayValue) Array added in v0.77.0

func (v Float64ArrayValue) Array() values.Array

func (Float64ArrayValue) Bool added in v0.77.0

func (v Float64ArrayValue) Bool() bool

func (Float64ArrayValue) Bytes added in v0.77.0

func (v Float64ArrayValue) Bytes() []byte

func (Float64ArrayValue) Dict added in v0.96.0

func (Float64ArrayValue) Duration added in v0.77.0

func (v Float64ArrayValue) Duration() values.Duration

func (Float64ArrayValue) Equal added in v0.77.0

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

func (Float64ArrayValue) Float added in v0.77.0

func (v Float64ArrayValue) Float() float64

func (Float64ArrayValue) Function added in v0.77.0

func (v Float64ArrayValue) Function() values.Function

func (Float64ArrayValue) Get added in v0.77.0

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

func (Float64ArrayValue) Int added in v0.77.0

func (v Float64ArrayValue) Int() int64

func (Float64ArrayValue) IsNull added in v0.77.0

func (v Float64ArrayValue) IsNull() bool

func (Float64ArrayValue) Len added in v0.77.0

func (v Float64ArrayValue) Len() int

func (Float64ArrayValue) Object added in v0.77.0

func (v Float64ArrayValue) Object() values.Object

func (Float64ArrayValue) Range added in v0.77.0

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

func (Float64ArrayValue) Regexp added in v0.77.0

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

func (Float64ArrayValue) Set added in v0.77.0

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

func (Float64ArrayValue) Sort added in v0.77.0

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

func (Float64ArrayValue) Str added in v0.77.0

func (v Float64ArrayValue) Str() string

func (Float64ArrayValue) Time added in v0.77.0

func (v Float64ArrayValue) Time() values.Time

func (Float64ArrayValue) Type added in v0.77.0

func (Float64ArrayValue) UInt added in v0.77.0

func (v Float64ArrayValue) UInt() uint64

type Float64Iterator added in v0.55.0

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

func IterateFloat64s added in v0.55.0

func IterateFloat64s(arrs []array.Interface) Float64Iterator

func (*Float64Iterator) IsEmpty added in v0.55.0

func (i *Float64Iterator) IsEmpty() bool

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

func (*Float64Iterator) IsNull added in v0.55.0

func (i *Float64Iterator) IsNull() bool

IsNull returns if the current value is null.

func (*Float64Iterator) IsValid added in v0.55.0

func (i *Float64Iterator) IsValid() bool

IsValid returns if the current value is valid.

func (*Float64Iterator) Next added in v0.55.0

func (i *Float64Iterator) 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 (*Float64Iterator) Value added in v0.55.0

func (i *Float64Iterator) Value() float64

Value returns the current value in the iterator.

type Int64ArrayValue added in v0.77.0

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

func (Int64ArrayValue) Append added in v0.77.0

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

func (Int64ArrayValue) Array added in v0.77.0

func (v Int64ArrayValue) Array() values.Array

func (Int64ArrayValue) Bool added in v0.77.0

func (v Int64ArrayValue) Bool() bool

func (Int64ArrayValue) Bytes added in v0.77.0

func (v Int64ArrayValue) Bytes() []byte

func (Int64ArrayValue) Dict added in v0.96.0

func (Int64ArrayValue) Duration added in v0.77.0

func (v Int64ArrayValue) Duration() values.Duration

func (Int64ArrayValue) Equal added in v0.77.0

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

func (Int64ArrayValue) Float added in v0.77.0

func (v Int64ArrayValue) Float() float64

func (Int64ArrayValue) Function added in v0.77.0

func (v Int64ArrayValue) Function() values.Function

func (Int64ArrayValue) Get added in v0.77.0

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

func (Int64ArrayValue) Int added in v0.77.0

func (v Int64ArrayValue) Int() int64

func (Int64ArrayValue) IsNull added in v0.77.0

func (v Int64ArrayValue) IsNull() bool

func (Int64ArrayValue) Len added in v0.77.0

func (v Int64ArrayValue) Len() int

func (Int64ArrayValue) Object added in v0.77.0

func (v Int64ArrayValue) Object() values.Object

func (Int64ArrayValue) Range added in v0.77.0

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

func (Int64ArrayValue) Regexp added in v0.77.0

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

func (Int64ArrayValue) Set added in v0.77.0

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

func (Int64ArrayValue) Sort added in v0.77.0

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

func (Int64ArrayValue) Str added in v0.77.0

func (v Int64ArrayValue) Str() string

func (Int64ArrayValue) Time added in v0.77.0

func (v Int64ArrayValue) Time() values.Time

func (Int64ArrayValue) Type added in v0.77.0

func (Int64ArrayValue) UInt added in v0.77.0

func (v Int64ArrayValue) UInt() uint64

type Int64Iterator added in v0.55.0

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

func IterateInt64s added in v0.55.0

func IterateInt64s(arrs []array.Interface) Int64Iterator

func (*Int64Iterator) IsEmpty added in v0.55.0

func (i *Int64Iterator) IsEmpty() bool

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

func (*Int64Iterator) IsNull added in v0.55.0

func (i *Int64Iterator) IsNull() bool

IsNull returns if the current value is null.

func (*Int64Iterator) IsValid added in v0.55.0

func (i *Int64Iterator) IsValid() bool

IsValid returns if the current value is valid.

func (*Int64Iterator) Next added in v0.55.0

func (i *Int64Iterator) 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 (*Int64Iterator) Value added in v0.55.0

func (i *Int64Iterator) 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.Binary
	// 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) ValueString added in v0.55.0

func (i *StringIterator) ValueString() string

ValueString returns the current value in the iterator.

type Uint64ArrayValue added in v0.77.0

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

func (Uint64ArrayValue) Append added in v0.77.0

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

func (Uint64ArrayValue) Array added in v0.77.0

func (v Uint64ArrayValue) Array() values.Array

func (Uint64ArrayValue) Bool added in v0.77.0

func (v Uint64ArrayValue) Bool() bool

func (Uint64ArrayValue) Bytes added in v0.77.0

func (v Uint64ArrayValue) Bytes() []byte

func (Uint64ArrayValue) Dict added in v0.96.0

func (Uint64ArrayValue) Duration added in v0.77.0

func (v Uint64ArrayValue) Duration() values.Duration

func (Uint64ArrayValue) Equal added in v0.77.0

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

func (Uint64ArrayValue) Float added in v0.77.0

func (v Uint64ArrayValue) Float() float64

func (Uint64ArrayValue) Function added in v0.77.0

func (v Uint64ArrayValue) Function() values.Function

func (Uint64ArrayValue) Get added in v0.77.0

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

func (Uint64ArrayValue) Int added in v0.77.0

func (v Uint64ArrayValue) Int() int64

func (Uint64ArrayValue) IsNull added in v0.77.0

func (v Uint64ArrayValue) IsNull() bool

func (Uint64ArrayValue) Len added in v0.77.0

func (v Uint64ArrayValue) Len() int

func (Uint64ArrayValue) Object added in v0.77.0

func (v Uint64ArrayValue) Object() values.Object

func (Uint64ArrayValue) Range added in v0.77.0

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

func (Uint64ArrayValue) Regexp added in v0.77.0

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

func (Uint64ArrayValue) Set added in v0.77.0

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

func (Uint64ArrayValue) Sort added in v0.77.0

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

func (Uint64ArrayValue) Str added in v0.77.0

func (v Uint64ArrayValue) Str() string

func (Uint64ArrayValue) Time added in v0.77.0

func (v Uint64ArrayValue) Time() values.Time

func (Uint64ArrayValue) Type added in v0.77.0

func (Uint64ArrayValue) UInt added in v0.77.0

func (v Uint64ArrayValue) UInt() uint64

type Uint64Iterator added in v0.55.0

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

func IterateUint64s added in v0.55.0

func IterateUint64s(arrs []array.Interface) Uint64Iterator

func (*Uint64Iterator) IsEmpty added in v0.55.0

func (i *Uint64Iterator) IsEmpty() bool

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

func (*Uint64Iterator) IsNull added in v0.55.0

func (i *Uint64Iterator) IsNull() bool

IsNull returns if the current value is null.

func (*Uint64Iterator) IsValid added in v0.55.0

func (i *Uint64Iterator) IsValid() bool

IsValid returns if the current value is valid.

func (*Uint64Iterator) Next added in v0.55.0

func (i *Uint64Iterator) 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 (*Uint64Iterator) Value added in v0.55.0

func (i *Uint64Iterator) 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