import "github.com/apache/arrow/go/arrow/array"
Package array provides implementations of various Arrow array types.
array.go binary.go binarybuilder.go boolean.go booleanbuilder.go bufferbuilder.go bufferbuilder_byte.go bufferbuilder_numeric.gen.go builder.go compare.go data.go decimal128.go doc.go fixed_size_list.go fixedsize_binary.go fixedsize_binarybuilder.go float16.go float16_builder.go interval.go list.go null.go numeric.gen.go numericbuilder.gen.go record.go string.go struct.go table.go util.go
const ( // UnknownNullCount specifies the NullN should be calculated from the null bitmap buffer. UnknownNullCount = -1 )
func ArrayApproxEqual(left, right Interface, opts ...EqualOption) bool
ArrayApproxEqual reports whether the two provided arrays are approximately equal. For non-floating point arrays, it is equivalent to ArrayEqual.
ArrayEqual reports whether the two provided arrays are equal.
ArraySliceEqual reports whether slices left[lbeg:lend] and right[rbeg:rend] are equal.
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.
NewRecordReader returns a simple iterator over the given slice of records.
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.
NewTableFromRecords returns a new basic, non-lazy in-memory table.
NewTableFromRecords panics if the records and schema are inconsistent.
func RecordApproxEqual(left, right Record, opts ...EqualOption) bool
RecordApproxEqual reports whether the two provided records are approximately equal. For non-floating point columns, it is equivalent to RecordEqual.
RecordEqual reports whether the two provided records are equal.
type Binary struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of variable-length binary strings.
NewBinaryData constructs a new Binary array from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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 (a *Binary) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
Value returns the slice at index i. This value should not be mutated.
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 struct {
// contains filtered or unexported fields
}
A BinaryBuilder is used to build a Binary array using the Append methods.
func NewBinaryBuilder(mem memory.Allocator, dtype arrow.BinaryDataType) *BinaryBuilder
func (b *BinaryBuilder) Append(v []byte)
func (b *BinaryBuilder) AppendNull()
func (b *BinaryBuilder) AppendString(v string)
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 (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.
Cap returns the total number of elements that can be stored without allocating additional memory.
func (b *BinaryBuilder) DataCap() int
DataCap returns the total number of bytes that can be stored without allocating additional memory.
func (b *BinaryBuilder) DataLen() int
DataLen returns the number of bytes in the data array.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
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 (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 (b *BinaryBuilder) ReserveData(n int)
ReserveData ensures there is enough space for appending n bytes by checking the capacity and resizing the data buffer if necessary.
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 be reduced.
func (b *BinaryBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *BinaryBuilder) Value(i int) []byte
type Boolean struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of boolean values.
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.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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 (a *Boolean) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type BooleanBuilder struct {
// contains filtered or unexported fields
}
func NewBooleanBuilder(mem memory.Allocator) *BooleanBuilder
func (b *BooleanBuilder) Append(v bool)
func (b *BooleanBuilder) AppendByte(v byte)
func (b *BooleanBuilder) AppendNull()
func (b *BooleanBuilder) AppendValues(v []bool, valid []bool)
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
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 (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 (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 (b *BooleanBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *BooleanBuilder) UnsafeAppend(v bool)
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 struct {
// contains filtered or unexported fields
}
Chunked manages a collection of primitives arrays as one logical large array.
NewChunked returns a new chunked array from the slice of arrays.
NewChunked panics if the chunks do not have the same data type.
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.
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.
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
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.
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.
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.
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.
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type Data struct {
// contains filtered or unexported fields
}
Data represents the memory and metadata of an Arrow array.
func NewData(dtype arrow.DataType, length int, buffers []*memory.Buffer, childData []*Data, nulls, offset int) *Data
NewData creates a new 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.
Buffers returns the buffers.
DataType returns the DataType of the data.
Len returns the length.
NullN returns the number of nulls.
Offset returns the offset.
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 (d *Data) Reset(dtype arrow.DataType, length int, buffers []*memory.Buffer, childData []*Data, nulls, offset int)
Reset sets the Data for re-use.
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type Date32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Date32 values.
NewDate32Data creates a new Date32.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Date32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Date32Builder struct {
// contains filtered or unexported fields
}
func NewDate32Builder(mem memory.Allocator) *Date32Builder
func (b *Date32Builder) Append(v arrow.Date32)
func (b *Date32Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Date32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Date32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Date32Builder) UnsafeAppend(v arrow.Date32)
func (b *Date32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Date64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Date64 values.
NewDate64Data creates a new Date64.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Date64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Date64Builder struct {
// contains filtered or unexported fields
}
func NewDate64Builder(mem memory.Allocator) *Date64Builder
func (b *Date64Builder) Append(v arrow.Date64)
func (b *Date64Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Date64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Date64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Date64Builder) UnsafeAppend(v arrow.Date64)
func (b *Date64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type DayTimeInterval struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.DayTimeInterval values.
func NewDayTimeIntervalData(data *Data) *DayTimeInterval
DataType returns the type metadata for this instance.
func (a *DayTimeInterval) DayTimeIntervalValues() []arrow.DayTimeInterval
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *DayTimeInterval) 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 (a *DayTimeInterval) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (a *DayTimeInterval) String() string
func (a *DayTimeInterval) Value(i int) arrow.DayTimeInterval
type DayTimeIntervalBuilder struct {
// contains filtered or unexported fields
}
func NewDayTimeIntervalBuilder(mem memory.Allocator) *DayTimeIntervalBuilder
func (b *DayTimeIntervalBuilder) Append(v arrow.DayTimeInterval)
func (b *DayTimeIntervalBuilder) AppendNull()
func (b *DayTimeIntervalBuilder) AppendValues(v []arrow.DayTimeInterval, 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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *DayTimeIntervalBuilder) NewArray() Interface
NewArray creates a DayTimeInterval array from the memory buffers used by the builder and resets the DayTimeIntervalBuilder so it can be used to build a new array.
func (b *DayTimeIntervalBuilder) NewDayTimeIntervalArray() (a *DayTimeInterval)
NewDayTimeIntervalArray creates a DayTimeInterval array from the memory buffers used by the builder and resets the DayTimeIntervalBuilder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *DayTimeIntervalBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *DayTimeIntervalBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *DayTimeIntervalBuilder) 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 (b *DayTimeIntervalBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *DayTimeIntervalBuilder) UnsafeAppend(v arrow.DayTimeInterval)
func (b *DayTimeIntervalBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type Decimal128 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of 128-bit decimal values.
func NewDecimal128Data(data *Data) *Decimal128
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *Decimal128) 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 (a *Decimal128) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (a *Decimal128) String() string
func (a *Decimal128) Value(i int) decimal128.Num
func (a *Decimal128) Values() []decimal128.Num
type Decimal128Builder struct {
// contains filtered or unexported fields
}
func NewDecimal128Builder(mem memory.Allocator, dtype *arrow.Decimal128Type) *Decimal128Builder
func (b *Decimal128Builder) Append(v decimal128.Num)
func (b *Decimal128Builder) AppendNull()
func (b *Decimal128Builder) AppendValues(v []decimal128.Num, 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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *Decimal128Builder) NewArray() Interface
NewArray creates a Decimal128 array from the memory buffers used by the builder and resets the Decimal128Builder so it can be used to build a new array.
func (b *Decimal128Builder) NewDecimal128Array() (a *Decimal128)
NewDecimal128Array creates a Decimal128 array from the memory buffers used by the builder and resets the Decimal128Builder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *Decimal128Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *Decimal128Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *Decimal128Builder) 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 (b *Decimal128Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Decimal128Builder) UnsafeAppend(v decimal128.Num)
func (b *Decimal128Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Duration struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Duration values.
NewDurationData creates a new Duration.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *Duration) 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.
Reset resets the array for re-use.
func (a *Duration) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type DurationBuilder struct {
// contains filtered or unexported fields
}
func NewDurationBuilder(mem memory.Allocator, dtype *arrow.DurationType) *DurationBuilder
func (b *DurationBuilder) Append(v arrow.Duration)
func (b *DurationBuilder) AppendNull()
func (b *DurationBuilder) AppendValues(v []arrow.Duration, 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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *DurationBuilder) NewArray() Interface
NewArray creates a Duration array from the memory buffers used by the builder and resets the DurationBuilder so it can be used to build a new array.
func (b *DurationBuilder) NewDurationArray() (a *Duration)
NewDurationArray creates a Duration array from the memory buffers used by the builder and resets the DurationBuilder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *DurationBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *DurationBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *DurationBuilder) 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 (b *DurationBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *DurationBuilder) UnsafeAppend(v arrow.Duration)
func (b *DurationBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type EqualOption func(*equalOption)
EqualOption is a functional option type used to configure how Records and Arrays are compared.
func WithAbsTolerance(atol float64) EqualOption
WithAbsTolerance configures the comparison functions so that 2 floating point values v1 and v2 are considered equal if |v1-v2| <= atol.
func WithNaNsEqual(v bool) EqualOption
WithNaNsEqual configures the comparison functions so that NaNs are considered equal.
type FixedSizeBinary struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of fixed-length binary strings.
func NewFixedSizeBinaryData(data *Data) *FixedSizeBinary
NewFixedSizeBinaryData constructs a new fixed-size binary array from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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 (a *FixedSizeBinary) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (a *FixedSizeBinary) String() string
func (a *FixedSizeBinary) Value(i int) []byte
Value returns the fixed-size slice at index i. This value should not be mutated.
type FixedSizeBinaryBuilder struct {
// contains filtered or unexported fields
}
A FixedSizeBinaryBuilder is used to build a FixedSizeBinary array using the Append methods.
func NewFixedSizeBinaryBuilder(mem memory.Allocator, dtype *arrow.FixedSizeBinaryType) *FixedSizeBinaryBuilder
func (b *FixedSizeBinaryBuilder) Append(v []byte)
func (b *FixedSizeBinaryBuilder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
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 (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 (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 (b *FixedSizeBinaryBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type FixedSizeList struct {
// contains filtered or unexported fields
}
FixedSizeList represents an immutable sequence of N array values.
func NewFixedSizeListData(data *Data) *FixedSizeList
NewFixedSizeListData returns a new List array value, from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (a *FixedSizeList) Len() int
Len returns the number of elements in the array.
func (a *FixedSizeList) ListValues() Interface
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *FixedSizeList) Release()
func (a *FixedSizeList) Retain()
func (a *FixedSizeList) String() string
type FixedSizeListBuilder struct {
// contains filtered or unexported fields
}
func NewFixedSizeListBuilder(mem memory.Allocator, n int32, etype arrow.DataType) *FixedSizeListBuilder
NewFixedSizeListBuilder returns a builder, using the provided memory allocator. The created list builder will create a list whose elements will be of type etype.
func (b *FixedSizeListBuilder) Append(v bool)
func (b *FixedSizeListBuilder) AppendNull()
func (b *FixedSizeListBuilder) AppendValues(valid []bool)
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *FixedSizeListBuilder) NewArray() Interface
NewArray creates a List array from the memory buffers used by the builder and resets the FixedSizeListBuilder so it can be used to build a new array.
func (b *FixedSizeListBuilder) NewListArray() (a *FixedSizeList)
NewListArray creates a List array from the memory buffers used by the builder and resets the FixedSizeListBuilder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *FixedSizeListBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *FixedSizeListBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *FixedSizeListBuilder) 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 (b *FixedSizeListBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *FixedSizeListBuilder) ValueBuilder() Builder
type Float16 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of Float16 values.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *Float16) 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 (a *Float16) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type Float16Builder struct {
// contains filtered or unexported fields
}
func NewFloat16Builder(mem memory.Allocator) *Float16Builder
func (b *Float16Builder) Append(v float16.Num)
func (b *Float16Builder) AppendNull()
func (b *Float16Builder) AppendValues(v []float16.Num, 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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *Float16Builder) NewArray() Interface
NewArray creates a Float16 array from the memory buffers used by the builder and resets the Float16Builder so it can be used to build a new array.
func (b *Float16Builder) NewFloat16Array() (a *Float16)
NewFloat16Array creates a Float16 array from the memory buffers used by the builder and resets the Float16Builder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *Float16Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *Float16Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *Float16Builder) 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 (b *Float16Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Float16Builder) UnsafeAppend(v float16.Num)
func (b *Float16Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Float32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of float32 values.
NewFloat32Data creates a new Float32.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Float32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Float32Builder struct {
// contains filtered or unexported fields
}
func NewFloat32Builder(mem memory.Allocator) *Float32Builder
func (b *Float32Builder) Append(v float32)
func (b *Float32Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Float32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Float32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Float32Builder) UnsafeAppend(v float32)
func (b *Float32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Float64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of float64 values.
NewFloat64Data creates a new Float64.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Float64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Float64Builder struct {
// contains filtered or unexported fields
}
func NewFloat64Builder(mem memory.Allocator) *Float64Builder
func (b *Float64Builder) Append(v float64)
func (b *Float64Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Float64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Float64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Float64Builder) UnsafeAppend(v float64)
func (b *Float64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int16 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int16 values.
NewInt16Data creates a new Int16.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Int16) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Int16Builder struct {
// contains filtered or unexported fields
}
func NewInt16Builder(mem memory.Allocator) *Int16Builder
func (b *Int16Builder) Append(v int16)
func (b *Int16Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Int16Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Int16Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Int16Builder) UnsafeAppend(v int16)
func (b *Int16Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int32 values.
NewInt32Data creates a new Int32.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Int32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Int32Builder struct {
// contains filtered or unexported fields
}
func NewInt32Builder(mem memory.Allocator) *Int32Builder
func (b *Int32Builder) Append(v int32)
func (b *Int32Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Int32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Int32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Int32Builder) UnsafeAppend(v int32)
func (b *Int32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int64 values.
NewInt64Data creates a new Int64.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Int64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Int64Builder struct {
// contains filtered or unexported fields
}
func NewInt64Builder(mem memory.Allocator) *Int64Builder
func (b *Int64Builder) Append(v int64)
func (b *Int64Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Int64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Int64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Int64Builder) UnsafeAppend(v int64)
func (b *Int64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int8 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int8 values.
NewInt8Data creates a new Int8.
DataType returns the type metadata for this instance.
Values returns the values.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Int8) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Value returns the value at the specified index.
type Int8Builder struct {
// contains filtered or unexported fields
}
func NewInt8Builder(mem memory.Allocator) *Int8Builder
func (b *Int8Builder) Append(v int8)
func (b *Int8Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Int8Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Int8Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Int8Builder) UnsafeAppend(v int8)
func (b *Int8Builder) UnsafeAppendBoolToBitmap(isValid bool)
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.
MakeFromData constructs a strongly-typed array instance from generic Data.
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 struct {
// contains filtered or unexported fields
}
List represents an immutable sequence of array values.
NewListData returns a new List array value, from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
type ListBuilder struct {
// contains filtered or unexported fields
}
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 (b *ListBuilder) Append(v bool)
func (b *ListBuilder) AppendNull()
func (b *ListBuilder) AppendValues(offsets []int32, valid []bool)
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *ListBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *ListBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *ListBuilder) ValueBuilder() Builder
type MonthInterval struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.MonthInterval values.
func NewMonthIntervalData(data *Data) *MonthInterval
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
func (a *MonthInterval) MonthIntervalValues() []arrow.MonthInterval
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
func (a *MonthInterval) 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 (a *MonthInterval) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (a *MonthInterval) String() string
func (a *MonthInterval) Value(i int) arrow.MonthInterval
type MonthIntervalBuilder struct {
// contains filtered or unexported fields
}
func NewMonthIntervalBuilder(mem memory.Allocator) *MonthIntervalBuilder
func (b *MonthIntervalBuilder) Append(v arrow.MonthInterval)
func (b *MonthIntervalBuilder) AppendNull()
func (b *MonthIntervalBuilder) AppendValues(v []arrow.MonthInterval, 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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
func (b *MonthIntervalBuilder) NewArray() Interface
NewArray creates a MonthInterval array from the memory buffers used by the builder and resets the MonthIntervalBuilder so it can be used to build a new array.
func (b *MonthIntervalBuilder) NewMonthIntervalArray() (a *MonthInterval)
NewMonthIntervalArray creates a MonthInterval array from the memory buffers used by the builder and resets the MonthIntervalBuilder so it can be used to build a new array.
NullN returns the number of null values in the array builder.
func (b *MonthIntervalBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (b *MonthIntervalBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (b *MonthIntervalBuilder) 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 (b *MonthIntervalBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *MonthIntervalBuilder) UnsafeAppend(v arrow.MonthInterval)
func (b *MonthIntervalBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type Null struct {
// contains filtered or unexported fields
}
Null represents an immutable, degenerate array with no physical storage.
NewNull returns a new Null array value of size n.
NewNullData returns a new Null array value, from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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 (a *Null) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
type NullBuilder struct {
// contains filtered or unexported fields
}
func NewNullBuilder(mem memory.Allocator) *NullBuilder
NewNullBuilder returns a builder, using the provided memory allocator.
func (b *NullBuilder) AppendNull()
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
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(size int)
func (*NullBuilder) Resize(size int)
func (b *NullBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
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 struct {
// contains filtered or unexported fields
}
RecordBuilder eases the process of building a Record, iteratively, from a known Schema.
NewRecordBuilder returns a builder, using the provided memory allocator and a schema.
func (b *RecordBuilder) Field(i int) Builder
func (b *RecordBuilder) Fields() []Builder
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 (b *RecordBuilder) Release()
Release decreases the reference count by 1.
func (b *RecordBuilder) Reserve(size int)
func (b *RecordBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *RecordBuilder) Schema() *arrow.Schema
type RecordReader interface { Retain() Release() Schema() *arrow.Schema Next() bool Record() Record }
RecordReader reads a stream of records.
type String struct {
// contains filtered or unexported fields
}
String represents an immutable sequence of variable-length UTF-8 strings.
NewStringData constructs a new String array from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the String with a different set of Data.
func (a *String) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
Value returns the slice at index i. This value should not be mutated.
ValueOffset returns the offset of the value at index i.
type StringBuilder struct {
// contains filtered or unexported fields
}
A StringBuilder is used to build a String array using the Append methods.
func NewStringBuilder(mem memory.Allocator) *StringBuilder
NewStringBuilder creates a new StringBuilder.
func (b *StringBuilder) Append(v string)
Append appends a string to the builder.
func (b *StringBuilder) AppendNull()
AppendNull appends a null to the builder.
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 (b *StringBuilder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (b *StringBuilder) Len() int
Len returns the number of elements in the array builder.
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 (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 (b *StringBuilder) NullN() int
NullN returns the number of null values in the array builder.
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 (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 (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 (b *StringBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *StringBuilder) Value(i int) string
Value returns the string at index i.
type Struct struct {
// contains filtered or unexported fields
}
Struct represents an ordered sequence of relative types.
NewStructData returns a new Struct array value from data.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
type StructBuilder struct {
// contains filtered or unexported fields
}
func NewStructBuilder(mem memory.Allocator, dtype *arrow.StructType) *StructBuilder
NewStructBuilder returns a builder, using the provided memory allocator.
func (b *StructBuilder) Append(v bool)
func (b *StructBuilder) AppendNull()
func (b *StructBuilder) AppendValues(valids []bool)
Cap returns the total number of elements that can be stored without allocating additional memory.
func (b *StructBuilder) FieldBuilder(i int) Builder
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *StructBuilder) NumField() int
func (b *StructBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *StructBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
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 struct {
// contains filtered or unexported fields
}
TableReader is a Record iterator over a (possibly chunked) Table
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 (tr *TableReader) Next() bool
func (tr *TableReader) Record() Record
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 (tr *TableReader) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (tr *TableReader) Schema() *arrow.Schema
type Time32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Time32 values.
NewTime32Data creates a new Time32.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Time32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Time32Builder struct {
// contains filtered or unexported fields
}
func NewTime32Builder(mem memory.Allocator, dtype *arrow.Time32Type) *Time32Builder
func (b *Time32Builder) Append(v arrow.Time32)
func (b *Time32Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Time32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Time32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Time32Builder) UnsafeAppend(v arrow.Time32)
func (b *Time32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Time64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Time64 values.
NewTime64Data creates a new Time64.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Time64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Time64Builder struct {
// contains filtered or unexported fields
}
func NewTime64Builder(mem memory.Allocator, dtype *arrow.Time64Type) *Time64Builder
func (b *Time64Builder) Append(v arrow.Time64)
func (b *Time64Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Time64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Time64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Time64Builder) UnsafeAppend(v arrow.Time64)
func (b *Time64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Timestamp struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Timestamp values.
NewTimestampData creates a new Timestamp.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Timestamp) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type TimestampBuilder struct {
// contains filtered or unexported fields
}
func NewTimestampBuilder(mem memory.Allocator, dtype *arrow.TimestampType) *TimestampBuilder
func (b *TimestampBuilder) Append(v arrow.Timestamp)
func (b *TimestampBuilder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *TimestampBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *TimestampBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *TimestampBuilder) UnsafeAppend(v arrow.Timestamp)
func (b *TimestampBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint16 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint16 values.
NewUint16Data creates a new Uint16.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Uint16) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Uint16Builder struct {
// contains filtered or unexported fields
}
func NewUint16Builder(mem memory.Allocator) *Uint16Builder
func (b *Uint16Builder) Append(v uint16)
func (b *Uint16Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Uint16Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Uint16Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Uint16Builder) UnsafeAppend(v uint16)
func (b *Uint16Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint32 values.
NewUint32Data creates a new Uint32.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Uint32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Uint32Builder struct {
// contains filtered or unexported fields
}
func NewUint32Builder(mem memory.Allocator) *Uint32Builder
func (b *Uint32Builder) Append(v uint32)
func (b *Uint32Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Uint32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Uint32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Uint32Builder) UnsafeAppend(v uint32)
func (b *Uint32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint64 values.
NewUint64Data creates a new Uint64.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Uint64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Uint64Builder struct {
// contains filtered or unexported fields
}
func NewUint64Builder(mem memory.Allocator) *Uint64Builder
func (b *Uint64Builder) Append(v uint64)
func (b *Uint64Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Uint64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Uint64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Uint64Builder) UnsafeAppend(v uint64)
func (b *Uint64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint8 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint8 values.
NewUint8Data creates a new Uint8.
DataType returns the type metadata for this instance.
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
Len returns the number of elements in the array.
NullBitmapBytes returns a byte slice of the validity bitmap.
NullN returns the number of null values in the array.
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.
Reset resets the array for re-use.
func (a *Uint8) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
String returns a string representation of the array.
Values returns the values.
Value returns the value at the specified index.
type Uint8Builder struct {
// contains filtered or unexported fields
}
func NewUint8Builder(mem memory.Allocator) *Uint8Builder
func (b *Uint8Builder) Append(v uint8)
func (b *Uint8Builder) AppendNull()
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.
Cap returns the total number of elements that can be stored without allocating additional memory.
Len returns the number of elements in the array builder.
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 (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.
NullN returns the number of null values in the array builder.
func (b *Uint8Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
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 (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 (b *Uint8Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (b *Uint8Builder) UnsafeAppend(v uint8)
func (b *Uint8Builder) UnsafeAppendBoolToBitmap(isValid bool)
Package array imports 14 packages (graph) and is imported by 64 packages. Updated 2020-11-12. Refresh now. Tools for package owners.