arrow: github.com/apache/arrow/go/arrow/array Index | Files

package array

import "github.com/apache/arrow/go/arrow/array"

Package array provides implementations of various Arrow array types.

Index

Package Files

array.go binary.go binarybuilder.go boolean.go booleanbuilder.go bufferbuilder.go bufferbuilder_byte.go bufferbuilder_numeric.gen.go builder.go data.go doc.go fixedsize_binary.go fixedsize_binarybuilder.go list.go null.go numeric.gen.go numericbuilder.gen.go record.go string.go struct.go table.go util.go

Constants

const (
    // UnknownNullCount specifies the NullN should be calculated from the null bitmap buffer.
    UnknownNullCount = -1
)

func NewRecord Uses

func NewRecord(schema *arrow.Schema, cols []Interface, nrows int64) *simpleRecord

NewRecord returns a basic, non-lazy in-memory record batch.

NewRecord panics if the columns and schema are inconsistent. NewRecord panics if rows is larger than the height of the columns.

func NewRecordReader Uses

func NewRecordReader(schema *arrow.Schema, recs []Record) (*simpleRecords, error)

NewRecordReader returns a simple iterator over the given slice of records.

func NewTable Uses

func NewTable(schema *arrow.Schema, cols []Column, rows int64) *simpleTable

NewTable returns a new basic, non-lazy in-memory table. If rows is negative, the number of rows will be inferred from the height of the columns.

NewTable panics if the columns and schema are inconsistent. NewTable panics if rows is larger than the height of the columns.

func NewTableFromRecords Uses

func NewTableFromRecords(schema *arrow.Schema, recs []Record) *simpleTable

NewTableFromRecords returns a new basic, non-lazy in-memory table.

NewTableFromRecords panics if the records and schema are inconsistent.

type Binary Uses

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

A type which represents an immutable sequence of variable-length binary strings.

func NewBinaryData Uses

func NewBinaryData(data *Data) *Binary

NewBinaryData constructs a new Binary array from data.

func (*Binary) Data Uses

func (a *Binary) Data() *Data

func (*Binary) DataType Uses

func (a *Binary) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Binary) IsNull Uses

func (a *Binary) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Binary) IsValid Uses

func (a *Binary) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Binary) Len Uses

func (a *Binary) Len() int

Len returns the number of elements in the array.

func (*Binary) NullBitmapBytes Uses

func (a *Binary) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Binary) NullN Uses

func (a *Binary) NullN() int

NullN returns the number of null values in the array.

func (*Binary) Release Uses

func (a *Binary) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Binary) Retain Uses

func (a *Binary) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Binary) Value Uses

func (a *Binary) Value(i int) []byte

Value returns the slice at index i. This value should not be mutated.

func (*Binary) ValueBytes Uses

func (a *Binary) ValueBytes() []byte

func (*Binary) ValueLen Uses

func (a *Binary) ValueLen(i int) int

func (*Binary) ValueOffset Uses

func (a *Binary) ValueOffset(i int) int

func (*Binary) ValueOffsets Uses

func (a *Binary) ValueOffsets() []int32

func (*Binary) ValueString Uses

func (a *Binary) ValueString(i int) string

ValueString returns the string at index i without performing additional allocations. The string is only valid for the lifetime of the Binary array.

type BinaryBuilder Uses

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

A BinaryBuilder is used to build a Binary array using the Append methods.

func NewBinaryBuilder Uses

func NewBinaryBuilder(mem memory.Allocator, dtype arrow.BinaryDataType) *BinaryBuilder

func (*BinaryBuilder) Append Uses

func (b *BinaryBuilder) Append(v []byte)

func (*BinaryBuilder) AppendNull Uses

func (b *BinaryBuilder) AppendNull()

func (*BinaryBuilder) AppendString Uses

func (b *BinaryBuilder) AppendString(v string)

func (*BinaryBuilder) AppendStringValues Uses

func (b *BinaryBuilder) AppendStringValues(v []string, valid []bool)

AppendStringValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*BinaryBuilder) AppendValues Uses

func (b *BinaryBuilder) AppendValues(v [][]byte, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*BinaryBuilder) Cap Uses

func (b *BinaryBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*BinaryBuilder) Len Uses

func (b *BinaryBuilder) Len() int

Len returns the number of elements in the array builder.

func (*BinaryBuilder) NewArray Uses

func (b *BinaryBuilder) NewArray() Interface

NewArray creates a Binary array from the memory buffers used by the builder and resets the BinaryBuilder so it can be used to build a new array.

func (*BinaryBuilder) NewBinaryArray Uses

func (b *BinaryBuilder) NewBinaryArray() (a *Binary)

NewBinaryArray creates a Binary array from the memory buffers used by the builder and resets the BinaryBuilder so it can be used to build a new array.

func (*BinaryBuilder) NullN Uses

func (b *BinaryBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*BinaryBuilder) Release Uses

func (b *BinaryBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*BinaryBuilder) Reserve Uses

func (b *BinaryBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*BinaryBuilder) Resize Uses

func (b *BinaryBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*BinaryBuilder) Retain Uses

func (b *BinaryBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*BinaryBuilder) UnsafeAppendBoolToBitmap Uses

func (b *BinaryBuilder) UnsafeAppendBoolToBitmap(isValid bool)

func (*BinaryBuilder) Value Uses

func (b *BinaryBuilder) Value(i int) []byte

type Boolean Uses

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

A type which represents an immutable sequence of boolean values.

func NewBoolean Uses

func NewBoolean(length int, data *memory.Buffer, nullBitmap *memory.Buffer, nulls int) *Boolean

NewBoolean creates a boolean array from the data memory.Buffer and contains length elements. The nullBitmap buffer can be nil of there are no null values. If nulls is not known, use UnknownNullCount to calculate the value of NullN at runtime from the nullBitmap buffer.

func NewBooleanData Uses

func NewBooleanData(data *Data) *Boolean

func (*Boolean) Data Uses

func (a *Boolean) Data() *Data

func (*Boolean) DataType Uses

func (a *Boolean) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Boolean) IsNull Uses

func (a *Boolean) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Boolean) IsValid Uses

func (a *Boolean) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Boolean) Len Uses

func (a *Boolean) Len() int

Len returns the number of elements in the array.

func (*Boolean) NullBitmapBytes Uses

func (a *Boolean) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Boolean) NullN Uses

func (a *Boolean) NullN() int

NullN returns the number of null values in the array.

func (*Boolean) Release Uses

func (a *Boolean) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Boolean) Retain Uses

func (a *Boolean) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Boolean) String Uses

func (a *Boolean) String() string

func (*Boolean) Value Uses

func (a *Boolean) Value(i int) bool

type BooleanBuilder Uses

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

func NewBooleanBuilder Uses

func NewBooleanBuilder(mem memory.Allocator) *BooleanBuilder

func (*BooleanBuilder) Append Uses

func (b *BooleanBuilder) Append(v bool)

func (*BooleanBuilder) AppendByte Uses

func (b *BooleanBuilder) AppendByte(v byte)

func (*BooleanBuilder) AppendNull Uses

func (b *BooleanBuilder) AppendNull()

func (*BooleanBuilder) AppendValues Uses

func (b *BooleanBuilder) AppendValues(v []bool, valid []bool)

func (*BooleanBuilder) Cap Uses

func (b *BooleanBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*BooleanBuilder) Len Uses

func (b *BooleanBuilder) Len() int

Len returns the number of elements in the array builder.

func (*BooleanBuilder) NewArray Uses

func (b *BooleanBuilder) NewArray() Interface

NewArray creates a Boolean array from the memory buffers used by the builder and resets the BooleanBuilder so it can be used to build a new array.

func (*BooleanBuilder) NewBooleanArray Uses

func (b *BooleanBuilder) NewBooleanArray() (a *Boolean)

NewBooleanArray creates a Boolean array from the memory buffers used by the builder and resets the BooleanBuilder so it can be used to build a new array.

func (*BooleanBuilder) NullN Uses

func (b *BooleanBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*BooleanBuilder) Release Uses

func (b *BooleanBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*BooleanBuilder) Reserve Uses

func (b *BooleanBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*BooleanBuilder) Resize Uses

func (b *BooleanBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*BooleanBuilder) Retain Uses

func (b *BooleanBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*BooleanBuilder) UnsafeAppend Uses

func (b *BooleanBuilder) UnsafeAppend(v bool)

func (*BooleanBuilder) UnsafeAppendBoolToBitmap Uses

func (b *BooleanBuilder) UnsafeAppendBoolToBitmap(isValid bool)

type Builder Uses

type Builder interface {
    // Retain increases the reference count by 1.
    // Retain may be called simultaneously from multiple goroutines.
    Retain()

    // Release decreases the reference count by 1.
    Release()

    // Len returns the number of elements in the array builder.
    Len() int

    // Cap returns the total number of elements that can be stored
    // without allocating additional memory.
    Cap() int

    // NullN returns the number of null values in the array builder.
    NullN() int

    // AppendNull adds a new null value to the array being built.
    AppendNull()

    // Reserve ensures there is enough space for appending n elements
    // by checking the capacity and calling Resize if necessary.
    Reserve(n int)

    // Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(),
    // additional memory will be allocated. If n is smaller, the allocated memory may reduced.
    Resize(n int)

    // NewArray creates a new array from the memory buffers used
    // by the builder and resets the Builder so it can be used to build
    // a new array.
    NewArray() Interface
    // contains filtered or unexported methods
}

Builder provides an interface to build arrow arrays.

type Chunked Uses

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

Chunked manages a collection of primitives arrays as one logical large array.

func NewChunked Uses

func NewChunked(dtype arrow.DataType, chunks []Interface) *Chunked

NewChunked returns a new chunked array from the slice of arrays.

NewChunked panics if the chunks do not have the same data type.

func (*Chunked) Chunk Uses

func (a *Chunked) Chunk(i int) Interface

func (*Chunked) Chunks Uses

func (a *Chunked) Chunks() []Interface

func (*Chunked) DataType Uses

func (a *Chunked) DataType() arrow.DataType

func (*Chunked) Len Uses

func (a *Chunked) Len() int

func (*Chunked) NewSlice Uses

func (a *Chunked) NewSlice(i, j int64) *Chunked

NewSlice constructs a zero-copy slice of the chunked array with the indicated indices i and j, corresponding to array[i:j]. The returned chunked array must be Release()'d after use.

NewSlice panics if the slice is outside the valid range of the input array. NewSlice panics if j < i.

func (*Chunked) NullN Uses

func (a *Chunked) NullN() int

func (*Chunked) Release Uses

func (a *Chunked) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*Chunked) Retain Uses

func (a *Chunked) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

type Column Uses

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

Column is an immutable column data structure consisting of a field (type metadata) and a chunked data array.

func NewColumn Uses

func NewColumn(field arrow.Field, chunks *Chunked) *Column

NewColumn returns a column from a field and a chunked data array.

NewColumn panics if the field's data type is inconsistent with the data type of the chunked data array.

func (*Column) Data Uses

func (col *Column) Data() *Chunked

func (*Column) DataType Uses

func (col *Column) DataType() arrow.DataType

func (*Column) Field Uses

func (col *Column) Field() arrow.Field

func (*Column) Len Uses

func (col *Column) Len() int

func (*Column) Name Uses

func (col *Column) Name() string

func (*Column) NewSlice Uses

func (col *Column) NewSlice(i, j int64) *Column

NewSlice returns a new zero-copy slice of the column with the indicated indices i and j, corresponding to the column's array[i:j]. The returned column must be Release()'d after use.

NewSlice panics if the slice is outside the valid range of the column's array. NewSlice panics if j < i.

func (*Column) NullN Uses

func (col *Column) NullN() int

func (*Column) Release Uses

func (col *Column) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*Column) Retain Uses

func (col *Column) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

type Data Uses

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

A type which represents the memory and metadata for an Arrow array.

func NewData Uses

func NewData(dtype arrow.DataType, length int, buffers []*memory.Buffer, childData []*Data, nulls, offset int) *Data

func NewSliceData Uses

func NewSliceData(data *Data, i, j int64) *Data

NewSliceData returns a new slice that shares backing data with the input. The returned Data slice starts at i and extends j-i elements, such as:

slice := data[i:j]

The returned value must be Release'd after use.

NewSliceData panics if the slice is outside the valid range of the input Data. NewSliceData panics if j < i.

func (*Data) Buffers Uses

func (d *Data) Buffers() []*memory.Buffer

func (*Data) DataType Uses

func (d *Data) DataType() arrow.DataType

func (*Data) Len Uses

func (d *Data) Len() int

func (*Data) NullN Uses

func (d *Data) NullN() int

func (*Data) Offset Uses

func (d *Data) Offset() int

func (*Data) Release Uses

func (d *Data) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*Data) Retain Uses

func (d *Data) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

type Date32 Uses

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

A type which represents an immutable sequence of arrow.Date32 values.

func NewDate32Data Uses

func NewDate32Data(data *Data) *Date32

func (*Date32) Data Uses

func (a *Date32) Data() *Data

func (*Date32) DataType Uses

func (a *Date32) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Date32) Date32Values Uses

func (a *Date32) Date32Values() []arrow.Date32

func (*Date32) IsNull Uses

func (a *Date32) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Date32) IsValid Uses

func (a *Date32) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Date32) Len Uses

func (a *Date32) Len() int

Len returns the number of elements in the array.

func (*Date32) NullBitmapBytes Uses

func (a *Date32) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Date32) NullN Uses

func (a *Date32) NullN() int

NullN returns the number of null values in the array.

func (*Date32) Release Uses

func (a *Date32) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Date32) Retain Uses

func (a *Date32) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Date32) String Uses

func (a *Date32) String() string

func (*Date32) Value Uses

func (a *Date32) Value(i int) arrow.Date32

type Date32Builder Uses

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

func NewDate32Builder Uses

func NewDate32Builder(mem memory.Allocator) *Date32Builder

func (*Date32Builder) Append Uses

func (b *Date32Builder) Append(v arrow.Date32)

func (*Date32Builder) AppendNull Uses

func (b *Date32Builder) AppendNull()

func (*Date32Builder) AppendValues Uses

func (b *Date32Builder) AppendValues(v []arrow.Date32, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Date32Builder) Cap Uses

func (b *Date32Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Date32Builder) Len Uses

func (b *Date32Builder) Len() int

Len returns the number of elements in the array builder.

func (*Date32Builder) NewArray Uses

func (b *Date32Builder) NewArray() Interface

NewArray creates a Date32 array from the memory buffers used by the builder and resets the Date32Builder so it can be used to build a new array.

func (*Date32Builder) NewDate32Array Uses

func (b *Date32Builder) NewDate32Array() (a *Date32)

NewDate32Array creates a Date32 array from the memory buffers used by the builder and resets the Date32Builder so it can be used to build a new array.

func (*Date32Builder) NullN Uses

func (b *Date32Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Date32Builder) Release Uses

func (b *Date32Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Date32Builder) Reserve Uses

func (b *Date32Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Date32Builder) Resize Uses

func (b *Date32Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Date32Builder) Retain Uses

func (b *Date32Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Date32Builder) UnsafeAppend Uses

func (b *Date32Builder) UnsafeAppend(v arrow.Date32)

func (*Date32Builder) UnsafeAppendBoolToBitmap Uses

func (b *Date32Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Date64 Uses

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

A type which represents an immutable sequence of arrow.Date64 values.

func NewDate64Data Uses

func NewDate64Data(data *Data) *Date64

func (*Date64) Data Uses

func (a *Date64) Data() *Data

func (*Date64) DataType Uses

func (a *Date64) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Date64) Date64Values Uses

func (a *Date64) Date64Values() []arrow.Date64

func (*Date64) IsNull Uses

func (a *Date64) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Date64) IsValid Uses

func (a *Date64) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Date64) Len Uses

func (a *Date64) Len() int

Len returns the number of elements in the array.

func (*Date64) NullBitmapBytes Uses

func (a *Date64) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Date64) NullN Uses

func (a *Date64) NullN() int

NullN returns the number of null values in the array.

func (*Date64) Release Uses

func (a *Date64) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Date64) Retain Uses

func (a *Date64) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Date64) String Uses

func (a *Date64) String() string

func (*Date64) Value Uses

func (a *Date64) Value(i int) arrow.Date64

type Date64Builder Uses

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

func NewDate64Builder Uses

func NewDate64Builder(mem memory.Allocator) *Date64Builder

func (*Date64Builder) Append Uses

func (b *Date64Builder) Append(v arrow.Date64)

func (*Date64Builder) AppendNull Uses

func (b *Date64Builder) AppendNull()

func (*Date64Builder) AppendValues Uses

func (b *Date64Builder) AppendValues(v []arrow.Date64, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Date64Builder) Cap Uses

func (b *Date64Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Date64Builder) Len Uses

func (b *Date64Builder) Len() int

Len returns the number of elements in the array builder.

func (*Date64Builder) NewArray Uses

func (b *Date64Builder) NewArray() Interface

NewArray creates a Date64 array from the memory buffers used by the builder and resets the Date64Builder so it can be used to build a new array.

func (*Date64Builder) NewDate64Array Uses

func (b *Date64Builder) NewDate64Array() (a *Date64)

NewDate64Array creates a Date64 array from the memory buffers used by the builder and resets the Date64Builder so it can be used to build a new array.

func (*Date64Builder) NullN Uses

func (b *Date64Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Date64Builder) Release Uses

func (b *Date64Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Date64Builder) Reserve Uses

func (b *Date64Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Date64Builder) Resize Uses

func (b *Date64Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Date64Builder) Retain Uses

func (b *Date64Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Date64Builder) UnsafeAppend Uses

func (b *Date64Builder) UnsafeAppend(v arrow.Date64)

func (*Date64Builder) UnsafeAppendBoolToBitmap Uses

func (b *Date64Builder) UnsafeAppendBoolToBitmap(isValid bool)

type FixedSizeBinary Uses

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

A type which represents an immutable sequence of fixed-length binary strings.

func NewFixedSizeBinaryData Uses

func NewFixedSizeBinaryData(data *Data) *FixedSizeBinary

NewFixedSizeBinaryData constructs a new fixed-size binary array from data.

func (*FixedSizeBinary) Data Uses

func (a *FixedSizeBinary) Data() *Data

func (*FixedSizeBinary) DataType Uses

func (a *FixedSizeBinary) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*FixedSizeBinary) IsNull Uses

func (a *FixedSizeBinary) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*FixedSizeBinary) IsValid Uses

func (a *FixedSizeBinary) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*FixedSizeBinary) Len Uses

func (a *FixedSizeBinary) Len() int

Len returns the number of elements in the array.

func (*FixedSizeBinary) NullBitmapBytes Uses

func (a *FixedSizeBinary) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*FixedSizeBinary) NullN Uses

func (a *FixedSizeBinary) NullN() int

NullN returns the number of null values in the array.

func (*FixedSizeBinary) Release Uses

func (a *FixedSizeBinary) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*FixedSizeBinary) Retain Uses

func (a *FixedSizeBinary) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*FixedSizeBinary) Value Uses

func (a *FixedSizeBinary) Value(i int) []byte

Value returns the fixed-size slice at index i. This value should not be mutated.

func (*FixedSizeBinary) ValueBytes Uses

func (a *FixedSizeBinary) ValueBytes() []byte

func (*FixedSizeBinary) ValueLen Uses

func (a *FixedSizeBinary) ValueLen(i int) int

func (*FixedSizeBinary) ValueOffset Uses

func (a *FixedSizeBinary) ValueOffset(i int) int

func (*FixedSizeBinary) ValueOffsets Uses

func (a *FixedSizeBinary) ValueOffsets() []int32

type FixedSizeBinaryBuilder Uses

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

A FixedSizeBinaryBuilder is used to build a FixedSizeBinary array using the Append methods.

func NewFixedSizeBinaryBuilder Uses

func NewFixedSizeBinaryBuilder(mem memory.Allocator, dtype *arrow.FixedSizeBinaryType) *FixedSizeBinaryBuilder

func (*FixedSizeBinaryBuilder) Append Uses

func (b *FixedSizeBinaryBuilder) Append(v []byte)

func (*FixedSizeBinaryBuilder) AppendNull Uses

func (b *FixedSizeBinaryBuilder) AppendNull()

func (*FixedSizeBinaryBuilder) AppendValues Uses

func (b *FixedSizeBinaryBuilder) AppendValues(v [][]byte, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*FixedSizeBinaryBuilder) Cap Uses

func (b *FixedSizeBinaryBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*FixedSizeBinaryBuilder) Len Uses

func (b *FixedSizeBinaryBuilder) Len() int

Len returns the number of elements in the array builder.

func (*FixedSizeBinaryBuilder) NewArray Uses

func (b *FixedSizeBinaryBuilder) NewArray() Interface

NewArray creates a FixedSizeBinary array from the memory buffers used by the builder and resets the FixedSizeBinaryBuilder so it can be used to build a new array.

func (*FixedSizeBinaryBuilder) NewFixedSizeBinaryArray Uses

func (b *FixedSizeBinaryBuilder) NewFixedSizeBinaryArray() (a *FixedSizeBinary)

NewFixedSizeBinaryArray creates a FixedSizeBinary array from the memory buffers used by the builder and resets the FixedSizeBinaryBuilder so it can be used to build a new array.

func (*FixedSizeBinaryBuilder) NullN Uses

func (b *FixedSizeBinaryBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*FixedSizeBinaryBuilder) Release Uses

func (b *FixedSizeBinaryBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*FixedSizeBinaryBuilder) Reserve Uses

func (b *FixedSizeBinaryBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*FixedSizeBinaryBuilder) Resize Uses

func (b *FixedSizeBinaryBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*FixedSizeBinaryBuilder) Retain Uses

func (b *FixedSizeBinaryBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*FixedSizeBinaryBuilder) UnsafeAppendBoolToBitmap Uses

func (b *FixedSizeBinaryBuilder) UnsafeAppendBoolToBitmap(isValid bool)

func (*FixedSizeBinaryBuilder) Value Uses

func (b *FixedSizeBinaryBuilder) Value(i int) []byte

type Float32 Uses

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

A type which represents an immutable sequence of float32 values.

func NewFloat32Data Uses

func NewFloat32Data(data *Data) *Float32

func (*Float32) Data Uses

func (a *Float32) Data() *Data

func (*Float32) DataType Uses

func (a *Float32) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Float32) Float32Values Uses

func (a *Float32) Float32Values() []float32

func (*Float32) IsNull Uses

func (a *Float32) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Float32) IsValid Uses

func (a *Float32) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Float32) Len Uses

func (a *Float32) Len() int

Len returns the number of elements in the array.

func (*Float32) NullBitmapBytes Uses

func (a *Float32) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Float32) NullN Uses

func (a *Float32) NullN() int

NullN returns the number of null values in the array.

func (*Float32) Release Uses

func (a *Float32) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Float32) Retain Uses

func (a *Float32) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Float32) String Uses

func (a *Float32) String() string

func (*Float32) Value Uses

func (a *Float32) Value(i int) float32

type Float32Builder Uses

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

func NewFloat32Builder Uses

func NewFloat32Builder(mem memory.Allocator) *Float32Builder

func (*Float32Builder) Append Uses

func (b *Float32Builder) Append(v float32)

func (*Float32Builder) AppendNull Uses

func (b *Float32Builder) AppendNull()

func (*Float32Builder) AppendValues Uses

func (b *Float32Builder) AppendValues(v []float32, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Float32Builder) Cap Uses

func (b *Float32Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Float32Builder) Len Uses

func (b *Float32Builder) Len() int

Len returns the number of elements in the array builder.

func (*Float32Builder) NewArray Uses

func (b *Float32Builder) NewArray() Interface

NewArray creates a Float32 array from the memory buffers used by the builder and resets the Float32Builder so it can be used to build a new array.

func (*Float32Builder) NewFloat32Array Uses

func (b *Float32Builder) NewFloat32Array() (a *Float32)

NewFloat32Array creates a Float32 array from the memory buffers used by the builder and resets the Float32Builder so it can be used to build a new array.

func (*Float32Builder) NullN Uses

func (b *Float32Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Float32Builder) Release Uses

func (b *Float32Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Float32Builder) Reserve Uses

func (b *Float32Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Float32Builder) Resize Uses

func (b *Float32Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Float32Builder) Retain Uses

func (b *Float32Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Float32Builder) UnsafeAppend Uses

func (b *Float32Builder) UnsafeAppend(v float32)

func (*Float32Builder) UnsafeAppendBoolToBitmap Uses

func (b *Float32Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Float64 Uses

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

A type which represents an immutable sequence of float64 values.

func NewFloat64Data Uses

func NewFloat64Data(data *Data) *Float64

func (*Float64) Data Uses

func (a *Float64) Data() *Data

func (*Float64) DataType Uses

func (a *Float64) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Float64) Float64Values Uses

func (a *Float64) Float64Values() []float64

func (*Float64) IsNull Uses

func (a *Float64) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Float64) IsValid Uses

func (a *Float64) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Float64) Len Uses

func (a *Float64) Len() int

Len returns the number of elements in the array.

func (*Float64) NullBitmapBytes Uses

func (a *Float64) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Float64) NullN Uses

func (a *Float64) NullN() int

NullN returns the number of null values in the array.

func (*Float64) Release Uses

func (a *Float64) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Float64) Retain Uses

func (a *Float64) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Float64) String Uses

func (a *Float64) String() string

func (*Float64) Value Uses

func (a *Float64) Value(i int) float64

type Float64Builder Uses

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

func NewFloat64Builder Uses

func NewFloat64Builder(mem memory.Allocator) *Float64Builder

func (*Float64Builder) Append Uses

func (b *Float64Builder) Append(v float64)

func (*Float64Builder) AppendNull Uses

func (b *Float64Builder) AppendNull()

func (*Float64Builder) AppendValues Uses

func (b *Float64Builder) AppendValues(v []float64, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Float64Builder) Cap Uses

func (b *Float64Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Float64Builder) Len Uses

func (b *Float64Builder) Len() int

Len returns the number of elements in the array builder.

func (*Float64Builder) NewArray Uses

func (b *Float64Builder) NewArray() Interface

NewArray creates a Float64 array from the memory buffers used by the builder and resets the Float64Builder so it can be used to build a new array.

func (*Float64Builder) NewFloat64Array Uses

func (b *Float64Builder) NewFloat64Array() (a *Float64)

NewFloat64Array creates a Float64 array from the memory buffers used by the builder and resets the Float64Builder so it can be used to build a new array.

func (*Float64Builder) NullN Uses

func (b *Float64Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Float64Builder) Release Uses

func (b *Float64Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Float64Builder) Reserve Uses

func (b *Float64Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Float64Builder) Resize Uses

func (b *Float64Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Float64Builder) Retain Uses

func (b *Float64Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Float64Builder) UnsafeAppend Uses

func (b *Float64Builder) UnsafeAppend(v float64)

func (*Float64Builder) UnsafeAppendBoolToBitmap Uses

func (b *Float64Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Int16 Uses

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

A type which represents an immutable sequence of int16 values.

func NewInt16Data Uses

func NewInt16Data(data *Data) *Int16

func (*Int16) Data Uses

func (a *Int16) Data() *Data

func (*Int16) DataType Uses

func (a *Int16) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Int16) Int16Values Uses

func (a *Int16) Int16Values() []int16

func (*Int16) IsNull Uses

func (a *Int16) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int16) IsValid Uses

func (a *Int16) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int16) Len Uses

func (a *Int16) Len() int

Len returns the number of elements in the array.

func (*Int16) NullBitmapBytes Uses

func (a *Int16) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Int16) NullN Uses

func (a *Int16) NullN() int

NullN returns the number of null values in the array.

func (*Int16) Release Uses

func (a *Int16) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Int16) Retain Uses

func (a *Int16) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int16) String Uses

func (a *Int16) String() string

func (*Int16) Value Uses

func (a *Int16) Value(i int) int16

type Int16Builder Uses

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

func NewInt16Builder Uses

func NewInt16Builder(mem memory.Allocator) *Int16Builder

func (*Int16Builder) Append Uses

func (b *Int16Builder) Append(v int16)

func (*Int16Builder) AppendNull Uses

func (b *Int16Builder) AppendNull()

func (*Int16Builder) AppendValues Uses

func (b *Int16Builder) AppendValues(v []int16, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Int16Builder) Cap Uses

func (b *Int16Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Int16Builder) Len Uses

func (b *Int16Builder) Len() int

Len returns the number of elements in the array builder.

func (*Int16Builder) NewArray Uses

func (b *Int16Builder) NewArray() Interface

NewArray creates a Int16 array from the memory buffers used by the builder and resets the Int16Builder so it can be used to build a new array.

func (*Int16Builder) NewInt16Array Uses

func (b *Int16Builder) NewInt16Array() (a *Int16)

NewInt16Array creates a Int16 array from the memory buffers used by the builder and resets the Int16Builder so it can be used to build a new array.

func (*Int16Builder) NullN Uses

func (b *Int16Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Int16Builder) Release Uses

func (b *Int16Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Int16Builder) Reserve Uses

func (b *Int16Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Int16Builder) Resize Uses

func (b *Int16Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Int16Builder) Retain Uses

func (b *Int16Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int16Builder) UnsafeAppend Uses

func (b *Int16Builder) UnsafeAppend(v int16)

func (*Int16Builder) UnsafeAppendBoolToBitmap Uses

func (b *Int16Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Int32 Uses

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

A type which represents an immutable sequence of int32 values.

func NewInt32Data Uses

func NewInt32Data(data *Data) *Int32

func (*Int32) Data Uses

func (a *Int32) Data() *Data

func (*Int32) DataType Uses

func (a *Int32) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Int32) Int32Values Uses

func (a *Int32) Int32Values() []int32

func (*Int32) IsNull Uses

func (a *Int32) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int32) IsValid Uses

func (a *Int32) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int32) Len Uses

func (a *Int32) Len() int

Len returns the number of elements in the array.

func (*Int32) NullBitmapBytes Uses

func (a *Int32) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Int32) NullN Uses

func (a *Int32) NullN() int

NullN returns the number of null values in the array.

func (*Int32) Release Uses

func (a *Int32) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Int32) Retain Uses

func (a *Int32) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int32) String Uses

func (a *Int32) String() string

func (*Int32) Value Uses

func (a *Int32) Value(i int) int32

type Int32Builder Uses

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

func NewInt32Builder Uses

func NewInt32Builder(mem memory.Allocator) *Int32Builder

func (*Int32Builder) Append Uses

func (b *Int32Builder) Append(v int32)

func (*Int32Builder) AppendNull Uses

func (b *Int32Builder) AppendNull()

func (*Int32Builder) AppendValues Uses

func (b *Int32Builder) AppendValues(v []int32, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Int32Builder) Cap Uses

func (b *Int32Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Int32Builder) Len Uses

func (b *Int32Builder) Len() int

Len returns the number of elements in the array builder.

func (*Int32Builder) NewArray Uses

func (b *Int32Builder) NewArray() Interface

NewArray creates a Int32 array from the memory buffers used by the builder and resets the Int32Builder so it can be used to build a new array.

func (*Int32Builder) NewInt32Array Uses

func (b *Int32Builder) NewInt32Array() (a *Int32)

NewInt32Array creates a Int32 array from the memory buffers used by the builder and resets the Int32Builder so it can be used to build a new array.

func (*Int32Builder) NullN Uses

func (b *Int32Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Int32Builder) Release Uses

func (b *Int32Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Int32Builder) Reserve Uses

func (b *Int32Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Int32Builder) Resize Uses

func (b *Int32Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Int32Builder) Retain Uses

func (b *Int32Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int32Builder) UnsafeAppend Uses

func (b *Int32Builder) UnsafeAppend(v int32)

func (*Int32Builder) UnsafeAppendBoolToBitmap Uses

func (b *Int32Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Int64 Uses

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

A type which represents an immutable sequence of int64 values.

func NewInt64Data Uses

func NewInt64Data(data *Data) *Int64

func (*Int64) Data Uses

func (a *Int64) Data() *Data

func (*Int64) DataType Uses

func (a *Int64) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Int64) Int64Values Uses

func (a *Int64) Int64Values() []int64

func (*Int64) IsNull Uses

func (a *Int64) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int64) IsValid Uses

func (a *Int64) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int64) Len Uses

func (a *Int64) Len() int

Len returns the number of elements in the array.

func (*Int64) NullBitmapBytes Uses

func (a *Int64) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Int64) NullN Uses

func (a *Int64) NullN() int

NullN returns the number of null values in the array.

func (*Int64) Release Uses

func (a *Int64) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Int64) Retain Uses

func (a *Int64) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int64) String Uses

func (a *Int64) String() string

func (*Int64) Value Uses

func (a *Int64) Value(i int) int64

type Int64Builder Uses

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

func NewInt64Builder Uses

func NewInt64Builder(mem memory.Allocator) *Int64Builder

func (*Int64Builder) Append Uses

func (b *Int64Builder) Append(v int64)

func (*Int64Builder) AppendNull Uses

func (b *Int64Builder) AppendNull()

func (*Int64Builder) AppendValues Uses

func (b *Int64Builder) AppendValues(v []int64, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Int64Builder) Cap Uses

func (b *Int64Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Int64Builder) Len Uses

func (b *Int64Builder) Len() int

Len returns the number of elements in the array builder.

func (*Int64Builder) NewArray Uses

func (b *Int64Builder) NewArray() Interface

NewArray creates a Int64 array from the memory buffers used by the builder and resets the Int64Builder so it can be used to build a new array.

func (*Int64Builder) NewInt64Array Uses

func (b *Int64Builder) NewInt64Array() (a *Int64)

NewInt64Array creates a Int64 array from the memory buffers used by the builder and resets the Int64Builder so it can be used to build a new array.

func (*Int64Builder) NullN Uses

func (b *Int64Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Int64Builder) Release Uses

func (b *Int64Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Int64Builder) Reserve Uses

func (b *Int64Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Int64Builder) Resize Uses

func (b *Int64Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Int64Builder) Retain Uses

func (b *Int64Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int64Builder) UnsafeAppend Uses

func (b *Int64Builder) UnsafeAppend(v int64)

func (*Int64Builder) UnsafeAppendBoolToBitmap Uses

func (b *Int64Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Int8 Uses

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

A type which represents an immutable sequence of int8 values.

func NewInt8Data Uses

func NewInt8Data(data *Data) *Int8

func (*Int8) Data Uses

func (a *Int8) Data() *Data

func (*Int8) DataType Uses

func (a *Int8) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Int8) Int8Values Uses

func (a *Int8) Int8Values() []int8

func (*Int8) IsNull Uses

func (a *Int8) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int8) IsValid Uses

func (a *Int8) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Int8) Len Uses

func (a *Int8) Len() int

Len returns the number of elements in the array.

func (*Int8) NullBitmapBytes Uses

func (a *Int8) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Int8) NullN Uses

func (a *Int8) NullN() int

NullN returns the number of null values in the array.

func (*Int8) Release Uses

func (a *Int8) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Int8) Retain Uses

func (a *Int8) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int8) String Uses

func (a *Int8) String() string

func (*Int8) Value Uses

func (a *Int8) Value(i int) int8

type Int8Builder Uses

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

func NewInt8Builder Uses

func NewInt8Builder(mem memory.Allocator) *Int8Builder

func (*Int8Builder) Append Uses

func (b *Int8Builder) Append(v int8)

func (*Int8Builder) AppendNull Uses

func (b *Int8Builder) AppendNull()

func (*Int8Builder) AppendValues Uses

func (b *Int8Builder) AppendValues(v []int8, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Int8Builder) Cap Uses

func (b *Int8Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Int8Builder) Len Uses

func (b *Int8Builder) Len() int

Len returns the number of elements in the array builder.

func (*Int8Builder) NewArray Uses

func (b *Int8Builder) NewArray() Interface

NewArray creates a Int8 array from the memory buffers used by the builder and resets the Int8Builder so it can be used to build a new array.

func (*Int8Builder) NewInt8Array Uses

func (b *Int8Builder) NewInt8Array() (a *Int8)

NewInt8Array creates a Int8 array from the memory buffers used by the builder and resets the Int8Builder so it can be used to build a new array.

func (*Int8Builder) NullN Uses

func (b *Int8Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Int8Builder) Release Uses

func (b *Int8Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Int8Builder) Reserve Uses

func (b *Int8Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Int8Builder) Resize Uses

func (b *Int8Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Int8Builder) Retain Uses

func (b *Int8Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Int8Builder) UnsafeAppend Uses

func (b *Int8Builder) UnsafeAppend(v int8)

func (*Int8Builder) UnsafeAppendBoolToBitmap Uses

func (b *Int8Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Interface Uses

type Interface interface {
    // DataType returns the type metadata for this instance.
    DataType() arrow.DataType

    // NullN returns the number of null values in the array.
    NullN() int

    // NullBitmapBytes returns a byte slice of the validity bitmap.
    NullBitmapBytes() []byte

    // IsNull returns true if value at index is null.
    // NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
    IsNull(i int) bool

    // IsValid returns true if value at index is not null.
    // NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
    IsValid(i int) bool

    Data() *Data

    // Len returns the number of elements in the array.
    Len() int

    // Retain increases the reference count by 1.
    // Retain may be called simultaneously from multiple goroutines.
    Retain()

    // Release decreases the reference count by 1.
    // Release may be called simultaneously from multiple goroutines.
    // When the reference count goes to zero, the memory is freed.
    Release()
}

A type which satisfies array.Interface represents an immutable sequence of values.

func MakeFromData Uses

func MakeFromData(data *Data) Interface

MakeFromData constructs a strongly-typed array instance from generic Data.

func NewSlice Uses

func NewSlice(arr Interface, i, j int64) Interface

NewSlice constructs a zero-copy slice of the array with the indicated indices i and j, corresponding to array[i:j]. The returned array must be Release()'d after use.

NewSlice panics if the slice is outside the valid range of the input array. NewSlice panics if j < i.

type List Uses

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

List represents an immutable sequence of array values.

func NewListData Uses

func NewListData(data *Data) *List

NewListData returns a new List array value, from data.

func (*List) Data Uses

func (a *List) Data() *Data

func (*List) DataType Uses

func (a *List) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*List) IsNull Uses

func (a *List) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*List) IsValid Uses

func (a *List) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*List) Len Uses

func (a *List) Len() int

Len returns the number of elements in the array.

func (*List) ListValues Uses

func (a *List) ListValues() Interface

func (*List) NullBitmapBytes Uses

func (a *List) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*List) NullN Uses

func (a *List) NullN() int

NullN returns the number of null values in the array.

func (*List) Offsets Uses

func (a *List) Offsets() []int32

func (*List) Release Uses

func (a *List) Release()

func (*List) Retain Uses

func (a *List) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

type ListBuilder Uses

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

func NewListBuilder Uses

func NewListBuilder(mem memory.Allocator, etype arrow.DataType) *ListBuilder

NewListBuilder returns a builder, using the provided memory allocator. The created list builder will create a list whose elements will be of type etype.

func (*ListBuilder) Append Uses

func (b *ListBuilder) Append(v bool)

func (*ListBuilder) AppendNull Uses

func (b *ListBuilder) AppendNull()

func (*ListBuilder) AppendValues Uses

func (b *ListBuilder) AppendValues(offsets []int32, valid []bool)

func (*ListBuilder) Cap Uses

func (b *ListBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*ListBuilder) Len Uses

func (b *ListBuilder) Len() int

Len returns the number of elements in the array builder.

func (*ListBuilder) NewArray Uses

func (b *ListBuilder) NewArray() Interface

NewArray creates a List array from the memory buffers used by the builder and resets the ListBuilder so it can be used to build a new array.

func (*ListBuilder) NewListArray Uses

func (b *ListBuilder) NewListArray() (a *List)

NewListArray creates a List array from the memory buffers used by the builder and resets the ListBuilder so it can be used to build a new array.

func (*ListBuilder) NullN Uses

func (b *ListBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*ListBuilder) Release Uses

func (b *ListBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*ListBuilder) Reserve Uses

func (b *ListBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*ListBuilder) Resize Uses

func (b *ListBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*ListBuilder) Retain Uses

func (b *ListBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*ListBuilder) UnsafeAppendBoolToBitmap Uses

func (b *ListBuilder) UnsafeAppendBoolToBitmap(isValid bool)

func (*ListBuilder) ValueBuilder Uses

func (b *ListBuilder) ValueBuilder() Builder

type Null Uses

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

Null represents an immutable, degenerate array with no physical storage.

func NewNull Uses

func NewNull(n int) *Null

NewNull returns a new Null array value of size n.

func NewNullData Uses

func NewNullData(data *Data) *Null

NewNullData returns a new Null array value, from data.

func (*Null) Data Uses

func (a *Null) Data() *Data

func (*Null) DataType Uses

func (a *Null) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Null) IsNull Uses

func (a *Null) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Null) IsValid Uses

func (a *Null) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Null) Len Uses

func (a *Null) Len() int

Len returns the number of elements in the array.

func (*Null) NullBitmapBytes Uses

func (a *Null) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Null) NullN Uses

func (a *Null) NullN() int

NullN returns the number of null values in the array.

func (*Null) Release Uses

func (a *Null) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Null) Retain Uses

func (a *Null) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

type NullBuilder Uses

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

func NewNullBuilder Uses

func NewNullBuilder(mem memory.Allocator) *NullBuilder

NewNullBuilder returns a builder, using the provided memory allocator.

func (*NullBuilder) AppendNull Uses

func (b *NullBuilder) AppendNull()

func (*NullBuilder) Cap Uses

func (b *NullBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*NullBuilder) Len Uses

func (b *NullBuilder) Len() int

Len returns the number of elements in the array builder.

func (*NullBuilder) NewArray Uses

func (b *NullBuilder) NewArray() Interface

NewArray creates a Null array from the memory buffers used by the builder and resets the NullBuilder so it can be used to build a new array.

func (*NullBuilder) NewNullArray Uses

func (b *NullBuilder) NewNullArray() (a *Null)

NewNullArray creates a Null array from the memory buffers used by the builder and resets the NullBuilder so it can be used to build a new array.

func (*NullBuilder) NullN Uses

func (b *NullBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*NullBuilder) Release Uses

func (b *NullBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*NullBuilder) Reserve Uses

func (*NullBuilder) Reserve(size int)

func (*NullBuilder) Resize Uses

func (*NullBuilder) Resize(size int)

func (*NullBuilder) Retain Uses

func (b *NullBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*NullBuilder) UnsafeAppendBoolToBitmap Uses

func (b *NullBuilder) UnsafeAppendBoolToBitmap(isValid bool)

type Record Uses

type Record interface {
    Release()
    Retain()

    Schema() *arrow.Schema

    NumRows() int64
    NumCols() int64

    Columns() []Interface
    Column(i int) Interface
    ColumnName(i int) string

    // NewSlice constructs a zero-copy slice of the record with the indicated
    // indices i and j, corresponding to array[i:j].
    // The returned record must be Release()'d after use.
    //
    // NewSlice panics if the slice is outside the valid range of the record array.
    // NewSlice panics if j < i.
    NewSlice(i, j int64) Record
}

Record is a collection of equal-length arrays matching a particular Schema.

type RecordBuilder Uses

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

RecordBuilder eases the process of building a Record, iteratively, from a known Schema.

func NewRecordBuilder Uses

func NewRecordBuilder(mem memory.Allocator, schema *arrow.Schema) *RecordBuilder

NewRecordBuilder returns a builder, using the provided memory allocator and a schema.

func (*RecordBuilder) Field Uses

func (b *RecordBuilder) Field(i int) Builder

func (*RecordBuilder) Fields Uses

func (b *RecordBuilder) Fields() []Builder

func (*RecordBuilder) NewRecord Uses

func (b *RecordBuilder) NewRecord() Record

NewRecord creates a new record from the memory buffers and resets the RecordBuilder so it can be used to build a new record.

The returned Record must be Release()'d after use.

NewRecord panics if the fields' builder do not have the same length.

func (*RecordBuilder) Release Uses

func (b *RecordBuilder) Release()

Release decreases the reference count by 1.

func (*RecordBuilder) Reserve Uses

func (b *RecordBuilder) Reserve(size int)

func (*RecordBuilder) Retain Uses

func (b *RecordBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*RecordBuilder) Schema Uses

func (b *RecordBuilder) Schema() *arrow.Schema

type RecordReader Uses

type RecordReader interface {
    Retain()
    Release()

    Schema() *arrow.Schema

    Next() bool
    Record() Record
}

RecordReader reads a stream of records.

type String Uses

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

A type which represents an immutable sequence of variable-length UTF-8 strings.

func NewStringData Uses

func NewStringData(data *Data) *String

NewStringData constructs a new String array from data.

func (*String) Data Uses

func (a *String) Data() *Data

func (*String) DataType Uses

func (a *String) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*String) IsNull Uses

func (a *String) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*String) IsValid Uses

func (a *String) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*String) Len Uses

func (a *String) Len() int

Len returns the number of elements in the array.

func (*String) NullBitmapBytes Uses

func (a *String) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*String) NullN Uses

func (a *String) NullN() int

NullN returns the number of null values in the array.

func (*String) Release Uses

func (a *String) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*String) Retain Uses

func (a *String) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*String) String Uses

func (a *String) String() string

func (*String) Value Uses

func (a *String) Value(i int) string

Value returns the slice at index i. This value should not be mutated.

type StringBuilder Uses

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

A StringBuilder is used to build a String array using the Append methods.

func NewStringBuilder Uses

func NewStringBuilder(mem memory.Allocator) *StringBuilder

func (*StringBuilder) Append Uses

func (b *StringBuilder) Append(v string)

func (*StringBuilder) AppendNull Uses

func (b *StringBuilder) AppendNull()

func (*StringBuilder) AppendValues Uses

func (b *StringBuilder) AppendValues(v []string, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*StringBuilder) Cap Uses

func (b *StringBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*StringBuilder) Len Uses

func (b *StringBuilder) Len() int

Len returns the number of elements in the array builder.

func (*StringBuilder) NewArray Uses

func (b *StringBuilder) NewArray() Interface

NewArray creates a String array from the memory buffers used by the builder and resets the StringBuilder so it can be used to build a new array.

func (*StringBuilder) NewStringArray Uses

func (b *StringBuilder) NewStringArray() (a *String)

NewStringArray creates a String array from the memory buffers used by the builder and resets the StringBuilder so it can be used to build a new array.

func (*StringBuilder) NullN Uses

func (b *StringBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*StringBuilder) Release Uses

func (b *StringBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*StringBuilder) Reserve Uses

func (b *StringBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*StringBuilder) Resize Uses

func (b *StringBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*StringBuilder) Retain Uses

func (b *StringBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*StringBuilder) Value Uses

func (b *StringBuilder) Value(i int) string

type Struct Uses

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

Struct represents an ordered sequence of relative types.

func NewStructData Uses

func NewStructData(data *Data) *Struct

NewStructData returns a new Struct array value from data.

func (*Struct) Data Uses

func (a *Struct) Data() *Data

func (*Struct) DataType Uses

func (a *Struct) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Struct) Field Uses

func (a *Struct) Field(i int) Interface

func (*Struct) IsNull Uses

func (a *Struct) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Struct) IsValid Uses

func (a *Struct) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Struct) Len Uses

func (a *Struct) Len() int

Len returns the number of elements in the array.

func (*Struct) NullBitmapBytes Uses

func (a *Struct) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Struct) NullN Uses

func (a *Struct) NullN() int

NullN returns the number of null values in the array.

func (*Struct) NumField Uses

func (a *Struct) NumField() int

func (*Struct) Release Uses

func (a *Struct) Release()

func (*Struct) Retain Uses

func (a *Struct) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Struct) String Uses

func (a *Struct) String() string

type StructBuilder Uses

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

func NewStructBuilder Uses

func NewStructBuilder(mem memory.Allocator, dtype *arrow.StructType) *StructBuilder

NewStructBuilder returns a builder, using the provided memory allocator.

func (*StructBuilder) Append Uses

func (b *StructBuilder) Append(v bool)

func (*StructBuilder) AppendNull Uses

func (b *StructBuilder) AppendNull()

func (*StructBuilder) AppendValues Uses

func (b *StructBuilder) AppendValues(valids []bool)

func (*StructBuilder) Cap Uses

func (b *StructBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*StructBuilder) FieldBuilder Uses

func (b *StructBuilder) FieldBuilder(i int) Builder

func (*StructBuilder) Len Uses

func (b *StructBuilder) Len() int

Len returns the number of elements in the array builder.

func (*StructBuilder) NewArray Uses

func (b *StructBuilder) NewArray() Interface

NewArray creates a Struct array from the memory buffers used by the builder and resets the StructBuilder so it can be used to build a new array.

func (*StructBuilder) NewStructArray Uses

func (b *StructBuilder) NewStructArray() (a *Struct)

NewStructArray creates a Struct array from the memory buffers used by the builder and resets the StructBuilder so it can be used to build a new array.

func (*StructBuilder) NullN Uses

func (b *StructBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*StructBuilder) NumField Uses

func (b *StructBuilder) NumField() int

func (*StructBuilder) Release Uses

func (b *StructBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*StructBuilder) Reserve Uses

func (b *StructBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*StructBuilder) Resize Uses

func (b *StructBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*StructBuilder) Retain Uses

func (b *StructBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*StructBuilder) UnsafeAppendBoolToBitmap Uses

func (b *StructBuilder) UnsafeAppendBoolToBitmap(isValid bool)

type Table Uses

type Table interface {
    Schema() *arrow.Schema
    NumRows() int64
    NumCols() int64
    Column(i int) *Column

    Retain()
    Release()
}

Table represents a logical sequence of chunked arrays.

type TableReader Uses

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

TableReader is a Record iterator over a (possibly chunked) Table

func NewTableReader Uses

func NewTableReader(tbl Table, chunkSize int64) *TableReader

NewTableReader returns a new TableReader to iterate over the (possibly chunked) Table. if chunkSize is <= 0, the biggest possible chunk will be selected.

func (*TableReader) Next Uses

func (tr *TableReader) Next() bool

func (*TableReader) Record Uses

func (tr *TableReader) Record() Record

func (*TableReader) Release Uses

func (tr *TableReader) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.

func (*TableReader) Retain Uses

func (tr *TableReader) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*TableReader) Schema Uses

func (tr *TableReader) Schema() *arrow.Schema

type Time32 Uses

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

A type which represents an immutable sequence of arrow.Time32 values.

func NewTime32Data Uses

func NewTime32Data(data *Data) *Time32

func (*Time32) Data Uses

func (a *Time32) Data() *Data

func (*Time32) DataType Uses

func (a *Time32) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Time32) IsNull Uses

func (a *Time32) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Time32) IsValid Uses

func (a *Time32) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Time32) Len Uses

func (a *Time32) Len() int

Len returns the number of elements in the array.

func (*Time32) NullBitmapBytes Uses

func (a *Time32) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Time32) NullN Uses

func (a *Time32) NullN() int

NullN returns the number of null values in the array.

func (*Time32) Release Uses

func (a *Time32) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Time32) Retain Uses

func (a *Time32) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Time32) String Uses

func (a *Time32) String() string

func (*Time32) Time32Values Uses

func (a *Time32) Time32Values() []arrow.Time32

func (*Time32) Value Uses

func (a *Time32) Value(i int) arrow.Time32

type Time32Builder Uses

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

func NewTime32Builder Uses

func NewTime32Builder(mem memory.Allocator, dtype *arrow.Time32Type) *Time32Builder

func (*Time32Builder) Append Uses

func (b *Time32Builder) Append(v arrow.Time32)

func (*Time32Builder) AppendNull Uses

func (b *Time32Builder) AppendNull()

func (*Time32Builder) AppendValues Uses

func (b *Time32Builder) AppendValues(v []arrow.Time32, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Time32Builder) Cap Uses

func (b *Time32Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Time32Builder) Len Uses

func (b *Time32Builder) Len() int

Len returns the number of elements in the array builder.

func (*Time32Builder) NewArray Uses

func (b *Time32Builder) NewArray() Interface

NewArray creates a Time32 array from the memory buffers used by the builder and resets the Time32Builder so it can be used to build a new array.

func (*Time32Builder) NewTime32Array Uses

func (b *Time32Builder) NewTime32Array() (a *Time32)

NewTime32Array creates a Time32 array from the memory buffers used by the builder and resets the Time32Builder so it can be used to build a new array.

func (*Time32Builder) NullN Uses

func (b *Time32Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Time32Builder) Release Uses

func (b *Time32Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Time32Builder) Reserve Uses

func (b *Time32Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Time32Builder) Resize Uses

func (b *Time32Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Time32Builder) Retain Uses

func (b *Time32Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Time32Builder) UnsafeAppend Uses

func (b *Time32Builder) UnsafeAppend(v arrow.Time32)

func (*Time32Builder) UnsafeAppendBoolToBitmap Uses

func (b *Time32Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Time64 Uses

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

A type which represents an immutable sequence of arrow.Time64 values.

func NewTime64Data Uses

func NewTime64Data(data *Data) *Time64

func (*Time64) Data Uses

func (a *Time64) Data() *Data

func (*Time64) DataType Uses

func (a *Time64) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Time64) IsNull Uses

func (a *Time64) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Time64) IsValid Uses

func (a *Time64) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Time64) Len Uses

func (a *Time64) Len() int

Len returns the number of elements in the array.

func (*Time64) NullBitmapBytes Uses

func (a *Time64) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Time64) NullN Uses

func (a *Time64) NullN() int

NullN returns the number of null values in the array.

func (*Time64) Release Uses

func (a *Time64) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Time64) Retain Uses

func (a *Time64) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Time64) String Uses

func (a *Time64) String() string

func (*Time64) Time64Values Uses

func (a *Time64) Time64Values() []arrow.Time64

func (*Time64) Value Uses

func (a *Time64) Value(i int) arrow.Time64

type Time64Builder Uses

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

func NewTime64Builder Uses

func NewTime64Builder(mem memory.Allocator, dtype *arrow.Time64Type) *Time64Builder

func (*Time64Builder) Append Uses

func (b *Time64Builder) Append(v arrow.Time64)

func (*Time64Builder) AppendNull Uses

func (b *Time64Builder) AppendNull()

func (*Time64Builder) AppendValues Uses

func (b *Time64Builder) AppendValues(v []arrow.Time64, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Time64Builder) Cap Uses

func (b *Time64Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Time64Builder) Len Uses

func (b *Time64Builder) Len() int

Len returns the number of elements in the array builder.

func (*Time64Builder) NewArray Uses

func (b *Time64Builder) NewArray() Interface

NewArray creates a Time64 array from the memory buffers used by the builder and resets the Time64Builder so it can be used to build a new array.

func (*Time64Builder) NewTime64Array Uses

func (b *Time64Builder) NewTime64Array() (a *Time64)

NewTime64Array creates a Time64 array from the memory buffers used by the builder and resets the Time64Builder so it can be used to build a new array.

func (*Time64Builder) NullN Uses

func (b *Time64Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Time64Builder) Release Uses

func (b *Time64Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Time64Builder) Reserve Uses

func (b *Time64Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Time64Builder) Resize Uses

func (b *Time64Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Time64Builder) Retain Uses

func (b *Time64Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Time64Builder) UnsafeAppend Uses

func (b *Time64Builder) UnsafeAppend(v arrow.Time64)

func (*Time64Builder) UnsafeAppendBoolToBitmap Uses

func (b *Time64Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Timestamp Uses

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

A type which represents an immutable sequence of arrow.Timestamp values.

func NewTimestampData Uses

func NewTimestampData(data *Data) *Timestamp

func (*Timestamp) Data Uses

func (a *Timestamp) Data() *Data

func (*Timestamp) DataType Uses

func (a *Timestamp) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Timestamp) IsNull Uses

func (a *Timestamp) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Timestamp) IsValid Uses

func (a *Timestamp) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Timestamp) Len Uses

func (a *Timestamp) Len() int

Len returns the number of elements in the array.

func (*Timestamp) NullBitmapBytes Uses

func (a *Timestamp) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Timestamp) NullN Uses

func (a *Timestamp) NullN() int

NullN returns the number of null values in the array.

func (*Timestamp) Release Uses

func (a *Timestamp) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Timestamp) Retain Uses

func (a *Timestamp) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Timestamp) String Uses

func (a *Timestamp) String() string

func (*Timestamp) TimestampValues Uses

func (a *Timestamp) TimestampValues() []arrow.Timestamp

func (*Timestamp) Value Uses

func (a *Timestamp) Value(i int) arrow.Timestamp

type TimestampBuilder Uses

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

func NewTimestampBuilder Uses

func NewTimestampBuilder(mem memory.Allocator, dtype *arrow.TimestampType) *TimestampBuilder

func (*TimestampBuilder) Append Uses

func (b *TimestampBuilder) Append(v arrow.Timestamp)

func (*TimestampBuilder) AppendNull Uses

func (b *TimestampBuilder) AppendNull()

func (*TimestampBuilder) AppendValues Uses

func (b *TimestampBuilder) AppendValues(v []arrow.Timestamp, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*TimestampBuilder) Cap Uses

func (b *TimestampBuilder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*TimestampBuilder) Len Uses

func (b *TimestampBuilder) Len() int

Len returns the number of elements in the array builder.

func (*TimestampBuilder) NewArray Uses

func (b *TimestampBuilder) NewArray() Interface

NewArray creates a Timestamp array from the memory buffers used by the builder and resets the TimestampBuilder so it can be used to build a new array.

func (*TimestampBuilder) NewTimestampArray Uses

func (b *TimestampBuilder) NewTimestampArray() (a *Timestamp)

NewTimestampArray creates a Timestamp array from the memory buffers used by the builder and resets the TimestampBuilder so it can be used to build a new array.

func (*TimestampBuilder) NullN Uses

func (b *TimestampBuilder) NullN() int

NullN returns the number of null values in the array builder.

func (*TimestampBuilder) Release Uses

func (b *TimestampBuilder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*TimestampBuilder) Reserve Uses

func (b *TimestampBuilder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*TimestampBuilder) Resize Uses

func (b *TimestampBuilder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*TimestampBuilder) Retain Uses

func (b *TimestampBuilder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*TimestampBuilder) UnsafeAppend Uses

func (b *TimestampBuilder) UnsafeAppend(v arrow.Timestamp)

func (*TimestampBuilder) UnsafeAppendBoolToBitmap Uses

func (b *TimestampBuilder) UnsafeAppendBoolToBitmap(isValid bool)

type Uint16 Uses

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

A type which represents an immutable sequence of uint16 values.

func NewUint16Data Uses

func NewUint16Data(data *Data) *Uint16

func (*Uint16) Data Uses

func (a *Uint16) Data() *Data

func (*Uint16) DataType Uses

func (a *Uint16) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Uint16) IsNull Uses

func (a *Uint16) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint16) IsValid Uses

func (a *Uint16) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint16) Len Uses

func (a *Uint16) Len() int

Len returns the number of elements in the array.

func (*Uint16) NullBitmapBytes Uses

func (a *Uint16) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Uint16) NullN Uses

func (a *Uint16) NullN() int

NullN returns the number of null values in the array.

func (*Uint16) Release Uses

func (a *Uint16) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Uint16) Retain Uses

func (a *Uint16) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint16) String Uses

func (a *Uint16) String() string

func (*Uint16) Uint16Values Uses

func (a *Uint16) Uint16Values() []uint16

func (*Uint16) Value Uses

func (a *Uint16) Value(i int) uint16

type Uint16Builder Uses

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

func NewUint16Builder Uses

func NewUint16Builder(mem memory.Allocator) *Uint16Builder

func (*Uint16Builder) Append Uses

func (b *Uint16Builder) Append(v uint16)

func (*Uint16Builder) AppendNull Uses

func (b *Uint16Builder) AppendNull()

func (*Uint16Builder) AppendValues Uses

func (b *Uint16Builder) AppendValues(v []uint16, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Uint16Builder) Cap Uses

func (b *Uint16Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Uint16Builder) Len Uses

func (b *Uint16Builder) Len() int

Len returns the number of elements in the array builder.

func (*Uint16Builder) NewArray Uses

func (b *Uint16Builder) NewArray() Interface

NewArray creates a Uint16 array from the memory buffers used by the builder and resets the Uint16Builder so it can be used to build a new array.

func (*Uint16Builder) NewUint16Array Uses

func (b *Uint16Builder) NewUint16Array() (a *Uint16)

NewUint16Array creates a Uint16 array from the memory buffers used by the builder and resets the Uint16Builder so it can be used to build a new array.

func (*Uint16Builder) NullN Uses

func (b *Uint16Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Uint16Builder) Release Uses

func (b *Uint16Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Uint16Builder) Reserve Uses

func (b *Uint16Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Uint16Builder) Resize Uses

func (b *Uint16Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Uint16Builder) Retain Uses

func (b *Uint16Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint16Builder) UnsafeAppend Uses

func (b *Uint16Builder) UnsafeAppend(v uint16)

func (*Uint16Builder) UnsafeAppendBoolToBitmap Uses

func (b *Uint16Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Uint32 Uses

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

A type which represents an immutable sequence of uint32 values.

func NewUint32Data Uses

func NewUint32Data(data *Data) *Uint32

func (*Uint32) Data Uses

func (a *Uint32) Data() *Data

func (*Uint32) DataType Uses

func (a *Uint32) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Uint32) IsNull Uses

func (a *Uint32) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint32) IsValid Uses

func (a *Uint32) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint32) Len Uses

func (a *Uint32) Len() int

Len returns the number of elements in the array.

func (*Uint32) NullBitmapBytes Uses

func (a *Uint32) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Uint32) NullN Uses

func (a *Uint32) NullN() int

NullN returns the number of null values in the array.

func (*Uint32) Release Uses

func (a *Uint32) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Uint32) Retain Uses

func (a *Uint32) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint32) String Uses

func (a *Uint32) String() string

func (*Uint32) Uint32Values Uses

func (a *Uint32) Uint32Values() []uint32

func (*Uint32) Value Uses

func (a *Uint32) Value(i int) uint32

type Uint32Builder Uses

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

func NewUint32Builder Uses

func NewUint32Builder(mem memory.Allocator) *Uint32Builder

func (*Uint32Builder) Append Uses

func (b *Uint32Builder) Append(v uint32)

func (*Uint32Builder) AppendNull Uses

func (b *Uint32Builder) AppendNull()

func (*Uint32Builder) AppendValues Uses

func (b *Uint32Builder) AppendValues(v []uint32, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Uint32Builder) Cap Uses

func (b *Uint32Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Uint32Builder) Len Uses

func (b *Uint32Builder) Len() int

Len returns the number of elements in the array builder.

func (*Uint32Builder) NewArray Uses

func (b *Uint32Builder) NewArray() Interface

NewArray creates a Uint32 array from the memory buffers used by the builder and resets the Uint32Builder so it can be used to build a new array.

func (*Uint32Builder) NewUint32Array Uses

func (b *Uint32Builder) NewUint32Array() (a *Uint32)

NewUint32Array creates a Uint32 array from the memory buffers used by the builder and resets the Uint32Builder so it can be used to build a new array.

func (*Uint32Builder) NullN Uses

func (b *Uint32Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Uint32Builder) Release Uses

func (b *Uint32Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Uint32Builder) Reserve Uses

func (b *Uint32Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Uint32Builder) Resize Uses

func (b *Uint32Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Uint32Builder) Retain Uses

func (b *Uint32Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint32Builder) UnsafeAppend Uses

func (b *Uint32Builder) UnsafeAppend(v uint32)

func (*Uint32Builder) UnsafeAppendBoolToBitmap Uses

func (b *Uint32Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Uint64 Uses

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

A type which represents an immutable sequence of uint64 values.

func NewUint64Data Uses

func NewUint64Data(data *Data) *Uint64

func (*Uint64) Data Uses

func (a *Uint64) Data() *Data

func (*Uint64) DataType Uses

func (a *Uint64) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Uint64) IsNull Uses

func (a *Uint64) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint64) IsValid Uses

func (a *Uint64) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint64) Len Uses

func (a *Uint64) Len() int

Len returns the number of elements in the array.

func (*Uint64) NullBitmapBytes Uses

func (a *Uint64) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Uint64) NullN Uses

func (a *Uint64) NullN() int

NullN returns the number of null values in the array.

func (*Uint64) Release Uses

func (a *Uint64) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Uint64) Retain Uses

func (a *Uint64) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint64) String Uses

func (a *Uint64) String() string

func (*Uint64) Uint64Values Uses

func (a *Uint64) Uint64Values() []uint64

func (*Uint64) Value Uses

func (a *Uint64) Value(i int) uint64

type Uint64Builder Uses

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

func NewUint64Builder Uses

func NewUint64Builder(mem memory.Allocator) *Uint64Builder

func (*Uint64Builder) Append Uses

func (b *Uint64Builder) Append(v uint64)

func (*Uint64Builder) AppendNull Uses

func (b *Uint64Builder) AppendNull()

func (*Uint64Builder) AppendValues Uses

func (b *Uint64Builder) AppendValues(v []uint64, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Uint64Builder) Cap Uses

func (b *Uint64Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Uint64Builder) Len Uses

func (b *Uint64Builder) Len() int

Len returns the number of elements in the array builder.

func (*Uint64Builder) NewArray Uses

func (b *Uint64Builder) NewArray() Interface

NewArray creates a Uint64 array from the memory buffers used by the builder and resets the Uint64Builder so it can be used to build a new array.

func (*Uint64Builder) NewUint64Array Uses

func (b *Uint64Builder) NewUint64Array() (a *Uint64)

NewUint64Array creates a Uint64 array from the memory buffers used by the builder and resets the Uint64Builder so it can be used to build a new array.

func (*Uint64Builder) NullN Uses

func (b *Uint64Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Uint64Builder) Release Uses

func (b *Uint64Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Uint64Builder) Reserve Uses

func (b *Uint64Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Uint64Builder) Resize Uses

func (b *Uint64Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Uint64Builder) Retain Uses

func (b *Uint64Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint64Builder) UnsafeAppend Uses

func (b *Uint64Builder) UnsafeAppend(v uint64)

func (*Uint64Builder) UnsafeAppendBoolToBitmap Uses

func (b *Uint64Builder) UnsafeAppendBoolToBitmap(isValid bool)

type Uint8 Uses

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

A type which represents an immutable sequence of uint8 values.

func NewUint8Data Uses

func NewUint8Data(data *Data) *Uint8

func (*Uint8) Data Uses

func (a *Uint8) Data() *Data

func (*Uint8) DataType Uses

func (a *Uint8) DataType() arrow.DataType

DataType returns the type metadata for this instance.

func (*Uint8) IsNull Uses

func (a *Uint8) IsNull(i int) bool

IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint8) IsValid Uses

func (a *Uint8) IsValid(i int) bool

IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.

func (*Uint8) Len Uses

func (a *Uint8) Len() int

Len returns the number of elements in the array.

func (*Uint8) NullBitmapBytes Uses

func (a *Uint8) NullBitmapBytes() []byte

NullBitmapBytes returns a byte slice of the validity bitmap.

func (*Uint8) NullN Uses

func (a *Uint8) NullN() int

NullN returns the number of null values in the array.

func (*Uint8) Release Uses

func (a *Uint8) Release()

Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.

func (*Uint8) Retain Uses

func (a *Uint8) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint8) String Uses

func (a *Uint8) String() string

func (*Uint8) Uint8Values Uses

func (a *Uint8) Uint8Values() []uint8

func (*Uint8) Value Uses

func (a *Uint8) Value(i int) uint8

type Uint8Builder Uses

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

func NewUint8Builder Uses

func NewUint8Builder(mem memory.Allocator) *Uint8Builder

func (*Uint8Builder) Append Uses

func (b *Uint8Builder) Append(v uint8)

func (*Uint8Builder) AppendNull Uses

func (b *Uint8Builder) AppendNull()

func (*Uint8Builder) AppendValues Uses

func (b *Uint8Builder) AppendValues(v []uint8, valid []bool)

AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.

func (*Uint8Builder) Cap Uses

func (b *Uint8Builder) Cap() int

Cap returns the total number of elements that can be stored without allocating additional memory.

func (*Uint8Builder) Len Uses

func (b *Uint8Builder) Len() int

Len returns the number of elements in the array builder.

func (*Uint8Builder) NewArray Uses

func (b *Uint8Builder) NewArray() Interface

NewArray creates a Uint8 array from the memory buffers used by the builder and resets the Uint8Builder so it can be used to build a new array.

func (*Uint8Builder) NewUint8Array Uses

func (b *Uint8Builder) NewUint8Array() (a *Uint8)

NewUint8Array creates a Uint8 array from the memory buffers used by the builder and resets the Uint8Builder so it can be used to build a new array.

func (*Uint8Builder) NullN Uses

func (b *Uint8Builder) NullN() int

NullN returns the number of null values in the array builder.

func (*Uint8Builder) Release Uses

func (b *Uint8Builder) Release()

Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.

func (*Uint8Builder) Reserve Uses

func (b *Uint8Builder) Reserve(n int)

Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.

func (*Uint8Builder) Resize Uses

func (b *Uint8Builder) Resize(n int)

Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.

func (*Uint8Builder) Retain Uses

func (b *Uint8Builder) Retain()

Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.

func (*Uint8Builder) UnsafeAppend Uses

func (b *Uint8Builder) UnsafeAppend(v uint8)

func (*Uint8Builder) UnsafeAppendBoolToBitmap Uses

func (b *Uint8Builder) UnsafeAppendBoolToBitmap(isValid bool)

Package array imports 11 packages (graph) and is imported by 13 packages. Updated 2019-01-11. Refresh now. Tools for package owners.