Documentation ¶
Overview ¶
Package array provides implementations of various Arrow array types.
Index ¶
- Constants
- type Binary
- func (a *Binary) Data() *Data
- func (a *Binary) DataType() arrow.DataType
- func (a *Binary) IsNull(i int) bool
- func (a *Binary) IsValid(i int) bool
- func (a *Binary) Len() int
- func (a *Binary) NullBitmapBytes() []byte
- func (a *Binary) NullN() int
- func (a *Binary) Release()
- func (a *Binary) Retain()
- func (a *Binary) Value(i int) []byte
- func (a *Binary) ValueBytes() []byte
- func (a *Binary) ValueLen(i int) int
- func (a *Binary) ValueOffset(i int) int
- func (a *Binary) ValueOffsets() []int32
- func (a *Binary) ValueString(i int) string
- type 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)
- func (b *BinaryBuilder) AppendValues(v [][]byte, valid []bool)
- func (b *BinaryBuilder) Cap() int
- func (b *BinaryBuilder) Len() int
- func (b *BinaryBuilder) NewBinaryArray() (a *Binary)
- func (b *BinaryBuilder) NullN() int
- func (b *BinaryBuilder) Release()
- func (b *BinaryBuilder) Reserve(n int)
- func (b *BinaryBuilder) Resize(n int)
- func (b *BinaryBuilder) Retain()
- func (b *BinaryBuilder) UnsafeAppendBoolToBitmap(isValid bool)
- func (b *BinaryBuilder) Value(i int) []byte
- type Boolean
- func (a *Boolean) Data() *Data
- func (a *Boolean) DataType() arrow.DataType
- func (a *Boolean) IsNull(i int) bool
- func (a *Boolean) IsValid(i int) bool
- func (a *Boolean) Len() int
- func (a *Boolean) NullBitmapBytes() []byte
- func (a *Boolean) NullN() int
- func (a *Boolean) Release()
- func (a *Boolean) Retain()
- func (a *Boolean) Value(i int) bool
- type 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)
- func (b *BooleanBuilder) Cap() int
- func (b *BooleanBuilder) Len() int
- func (b *BooleanBuilder) NewBooleanArray() (a *Boolean)
- func (b *BooleanBuilder) NullN() int
- func (b *BooleanBuilder) Release()
- func (b *BooleanBuilder) Reserve(n int)
- func (b *BooleanBuilder) Resize(n int)
- func (b *BooleanBuilder) Retain()
- func (b *BooleanBuilder) UnsafeAppend(v bool)
- func (b *BooleanBuilder) UnsafeAppendBoolToBitmap(isValid bool)
- type Data
- type Float32
- func (a *Float32) Data() *Data
- func (a *Float32) DataType() arrow.DataType
- func (a *Float32) Float32Values() []float32
- func (a *Float32) IsNull(i int) bool
- func (a *Float32) IsValid(i int) bool
- func (a *Float32) Len() int
- func (a *Float32) NullBitmapBytes() []byte
- func (a *Float32) NullN() int
- func (a *Float32) Release()
- func (a *Float32) Retain()
- func (a *Float32) Value(i int) float32
- type Float32Builder
- func (b *Float32Builder) Append(v float32)
- func (b *Float32Builder) AppendNull()
- func (b *Float32Builder) AppendValues(v []float32, valid []bool)
- func (b *Float32Builder) Cap() int
- func (b *Float32Builder) Len() int
- func (b *Float32Builder) NewFloat32Array() (a *Float32)
- func (b *Float32Builder) NullN() int
- func (b *Float32Builder) Release()
- func (b *Float32Builder) Reserve(n int)
- func (b *Float32Builder) Resize(n int)
- func (b *Float32Builder) Retain()
- func (b *Float32Builder) UnsafeAppend(v float32)
- func (b *Float32Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Float64
- func (a *Float64) Data() *Data
- func (a *Float64) DataType() arrow.DataType
- func (a *Float64) Float64Values() []float64
- func (a *Float64) IsNull(i int) bool
- func (a *Float64) IsValid(i int) bool
- func (a *Float64) Len() int
- func (a *Float64) NullBitmapBytes() []byte
- func (a *Float64) NullN() int
- func (a *Float64) Release()
- func (a *Float64) Retain()
- func (a *Float64) Value(i int) float64
- type Float64Builder
- func (b *Float64Builder) Append(v float64)
- func (b *Float64Builder) AppendNull()
- func (b *Float64Builder) AppendValues(v []float64, valid []bool)
- func (b *Float64Builder) Cap() int
- func (b *Float64Builder) Len() int
- func (b *Float64Builder) NewFloat64Array() (a *Float64)
- func (b *Float64Builder) NullN() int
- func (b *Float64Builder) Release()
- func (b *Float64Builder) Reserve(n int)
- func (b *Float64Builder) Resize(n int)
- func (b *Float64Builder) Retain()
- func (b *Float64Builder) UnsafeAppend(v float64)
- func (b *Float64Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Int16
- func (a *Int16) Data() *Data
- func (a *Int16) DataType() arrow.DataType
- func (a *Int16) Int16Values() []int16
- func (a *Int16) IsNull(i int) bool
- func (a *Int16) IsValid(i int) bool
- func (a *Int16) Len() int
- func (a *Int16) NullBitmapBytes() []byte
- func (a *Int16) NullN() int
- func (a *Int16) Release()
- func (a *Int16) Retain()
- func (a *Int16) Value(i int) int16
- type Int16Builder
- func (b *Int16Builder) Append(v int16)
- func (b *Int16Builder) AppendNull()
- func (b *Int16Builder) AppendValues(v []int16, valid []bool)
- func (b *Int16Builder) Cap() int
- func (b *Int16Builder) Len() int
- func (b *Int16Builder) NewInt16Array() (a *Int16)
- func (b *Int16Builder) NullN() int
- func (b *Int16Builder) Release()
- func (b *Int16Builder) Reserve(n int)
- func (b *Int16Builder) Resize(n int)
- func (b *Int16Builder) Retain()
- func (b *Int16Builder) UnsafeAppend(v int16)
- func (b *Int16Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Int32
- func (a *Int32) Data() *Data
- func (a *Int32) DataType() arrow.DataType
- func (a *Int32) Int32Values() []int32
- func (a *Int32) IsNull(i int) bool
- func (a *Int32) IsValid(i int) bool
- func (a *Int32) Len() int
- func (a *Int32) NullBitmapBytes() []byte
- func (a *Int32) NullN() int
- func (a *Int32) Release()
- func (a *Int32) Retain()
- func (a *Int32) Value(i int) int32
- type Int32Builder
- func (b *Int32Builder) Append(v int32)
- func (b *Int32Builder) AppendNull()
- func (b *Int32Builder) AppendValues(v []int32, valid []bool)
- func (b *Int32Builder) Cap() int
- func (b *Int32Builder) Len() int
- func (b *Int32Builder) NewInt32Array() (a *Int32)
- func (b *Int32Builder) NullN() int
- func (b *Int32Builder) Release()
- func (b *Int32Builder) Reserve(n int)
- func (b *Int32Builder) Resize(n int)
- func (b *Int32Builder) Retain()
- func (b *Int32Builder) UnsafeAppend(v int32)
- func (b *Int32Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Int64
- func (a *Int64) Data() *Data
- func (a *Int64) DataType() arrow.DataType
- func (a *Int64) Int64Values() []int64
- func (a *Int64) IsNull(i int) bool
- func (a *Int64) IsValid(i int) bool
- func (a *Int64) Len() int
- func (a *Int64) NullBitmapBytes() []byte
- func (a *Int64) NullN() int
- func (a *Int64) Release()
- func (a *Int64) Retain()
- func (a *Int64) Value(i int) int64
- type Int64Builder
- func (b *Int64Builder) Append(v int64)
- func (b *Int64Builder) AppendNull()
- func (b *Int64Builder) AppendValues(v []int64, valid []bool)
- func (b *Int64Builder) Cap() int
- func (b *Int64Builder) Len() int
- func (b *Int64Builder) NewInt64Array() (a *Int64)
- func (b *Int64Builder) NullN() int
- func (b *Int64Builder) Release()
- func (b *Int64Builder) Reserve(n int)
- func (b *Int64Builder) Resize(n int)
- func (b *Int64Builder) Retain()
- func (b *Int64Builder) UnsafeAppend(v int64)
- func (b *Int64Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Int8
- func (a *Int8) Data() *Data
- func (a *Int8) DataType() arrow.DataType
- func (a *Int8) Int8Values() []int8
- func (a *Int8) IsNull(i int) bool
- func (a *Int8) IsValid(i int) bool
- func (a *Int8) Len() int
- func (a *Int8) NullBitmapBytes() []byte
- func (a *Int8) NullN() int
- func (a *Int8) Release()
- func (a *Int8) Retain()
- func (a *Int8) Value(i int) int8
- type Int8Builder
- func (b *Int8Builder) Append(v int8)
- func (b *Int8Builder) AppendNull()
- func (b *Int8Builder) AppendValues(v []int8, valid []bool)
- func (b *Int8Builder) Cap() int
- func (b *Int8Builder) Len() int
- func (b *Int8Builder) NewInt8Array() (a *Int8)
- func (b *Int8Builder) NullN() int
- func (b *Int8Builder) Release()
- func (b *Int8Builder) Reserve(n int)
- func (b *Int8Builder) Resize(n int)
- func (b *Int8Builder) Retain()
- func (b *Int8Builder) UnsafeAppend(v int8)
- func (b *Int8Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Interface
- type Timestamp
- func (a *Timestamp) Data() *Data
- func (a *Timestamp) DataType() arrow.DataType
- func (a *Timestamp) IsNull(i int) bool
- func (a *Timestamp) IsValid(i int) bool
- func (a *Timestamp) Len() int
- func (a *Timestamp) NullBitmapBytes() []byte
- func (a *Timestamp) NullN() int
- func (a *Timestamp) Release()
- func (a *Timestamp) Retain()
- func (a *Timestamp) TimestampValues() []arrow.Timestamp
- func (a *Timestamp) Value(i int) arrow.Timestamp
- type TimestampBuilder
- func (b *TimestampBuilder) Append(v arrow.Timestamp)
- func (b *TimestampBuilder) AppendNull()
- func (b *TimestampBuilder) AppendValues(v []arrow.Timestamp, valid []bool)
- func (b *TimestampBuilder) Cap() int
- func (b *TimestampBuilder) Len() int
- func (b *TimestampBuilder) NewTimestampArray() (a *Timestamp)
- func (b *TimestampBuilder) NullN() int
- func (b *TimestampBuilder) Release()
- func (b *TimestampBuilder) Reserve(n int)
- func (b *TimestampBuilder) Resize(n int)
- func (b *TimestampBuilder) Retain()
- func (b *TimestampBuilder) UnsafeAppend(v arrow.Timestamp)
- func (b *TimestampBuilder) UnsafeAppendBoolToBitmap(isValid bool)
- type Uint16
- func (a *Uint16) Data() *Data
- func (a *Uint16) DataType() arrow.DataType
- func (a *Uint16) IsNull(i int) bool
- func (a *Uint16) IsValid(i int) bool
- func (a *Uint16) Len() int
- func (a *Uint16) NullBitmapBytes() []byte
- func (a *Uint16) NullN() int
- func (a *Uint16) Release()
- func (a *Uint16) Retain()
- func (a *Uint16) Uint16Values() []uint16
- func (a *Uint16) Value(i int) uint16
- type Uint16Builder
- func (b *Uint16Builder) Append(v uint16)
- func (b *Uint16Builder) AppendNull()
- func (b *Uint16Builder) AppendValues(v []uint16, valid []bool)
- func (b *Uint16Builder) Cap() int
- func (b *Uint16Builder) Len() int
- func (b *Uint16Builder) NewUint16Array() (a *Uint16)
- func (b *Uint16Builder) NullN() int
- func (b *Uint16Builder) Release()
- func (b *Uint16Builder) Reserve(n int)
- func (b *Uint16Builder) Resize(n int)
- func (b *Uint16Builder) Retain()
- func (b *Uint16Builder) UnsafeAppend(v uint16)
- func (b *Uint16Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Uint32
- func (a *Uint32) Data() *Data
- func (a *Uint32) DataType() arrow.DataType
- func (a *Uint32) IsNull(i int) bool
- func (a *Uint32) IsValid(i int) bool
- func (a *Uint32) Len() int
- func (a *Uint32) NullBitmapBytes() []byte
- func (a *Uint32) NullN() int
- func (a *Uint32) Release()
- func (a *Uint32) Retain()
- func (a *Uint32) Uint32Values() []uint32
- func (a *Uint32) Value(i int) uint32
- type Uint32Builder
- func (b *Uint32Builder) Append(v uint32)
- func (b *Uint32Builder) AppendNull()
- func (b *Uint32Builder) AppendValues(v []uint32, valid []bool)
- func (b *Uint32Builder) Cap() int
- func (b *Uint32Builder) Len() int
- func (b *Uint32Builder) NewUint32Array() (a *Uint32)
- func (b *Uint32Builder) NullN() int
- func (b *Uint32Builder) Release()
- func (b *Uint32Builder) Reserve(n int)
- func (b *Uint32Builder) Resize(n int)
- func (b *Uint32Builder) Retain()
- func (b *Uint32Builder) UnsafeAppend(v uint32)
- func (b *Uint32Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Uint64
- func (a *Uint64) Data() *Data
- func (a *Uint64) DataType() arrow.DataType
- func (a *Uint64) IsNull(i int) bool
- func (a *Uint64) IsValid(i int) bool
- func (a *Uint64) Len() int
- func (a *Uint64) NullBitmapBytes() []byte
- func (a *Uint64) NullN() int
- func (a *Uint64) Release()
- func (a *Uint64) Retain()
- func (a *Uint64) Uint64Values() []uint64
- func (a *Uint64) Value(i int) uint64
- type Uint64Builder
- func (b *Uint64Builder) Append(v uint64)
- func (b *Uint64Builder) AppendNull()
- func (b *Uint64Builder) AppendValues(v []uint64, valid []bool)
- func (b *Uint64Builder) Cap() int
- func (b *Uint64Builder) Len() int
- func (b *Uint64Builder) NewUint64Array() (a *Uint64)
- func (b *Uint64Builder) NullN() int
- func (b *Uint64Builder) Release()
- func (b *Uint64Builder) Reserve(n int)
- func (b *Uint64Builder) Resize(n int)
- func (b *Uint64Builder) Retain()
- func (b *Uint64Builder) UnsafeAppend(v uint64)
- func (b *Uint64Builder) UnsafeAppendBoolToBitmap(isValid bool)
- type Uint8
- func (a *Uint8) Data() *Data
- func (a *Uint8) DataType() arrow.DataType
- func (a *Uint8) IsNull(i int) bool
- func (a *Uint8) IsValid(i int) bool
- func (a *Uint8) Len() int
- func (a *Uint8) NullBitmapBytes() []byte
- func (a *Uint8) NullN() int
- func (a *Uint8) Release()
- func (a *Uint8) Retain()
- func (a *Uint8) Uint8Values() []uint8
- func (a *Uint8) Value(i int) uint8
- type Uint8Builder
- func (b *Uint8Builder) Append(v uint8)
- func (b *Uint8Builder) AppendNull()
- func (b *Uint8Builder) AppendValues(v []uint8, valid []bool)
- func (b *Uint8Builder) Cap() int
- func (b *Uint8Builder) Len() int
- func (b *Uint8Builder) NewUint8Array() (a *Uint8)
- func (b *Uint8Builder) NullN() int
- func (b *Uint8Builder) Release()
- func (b *Uint8Builder) Reserve(n int)
- func (b *Uint8Builder) Resize(n int)
- func (b *Uint8Builder) Retain()
- func (b *Uint8Builder) UnsafeAppend(v uint8)
- func (b *Uint8Builder) UnsafeAppendBoolToBitmap(isValid bool)
Constants ¶
const (
// UnknownNullCount specifies the NullN should be calculated from the null bitmap buffer.
UnknownNullCount = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of variable-length binary strings.
func NewBinaryData ¶
NewBinaryData constructs a new Binary array from data.
func (*Binary) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Binary) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Binary) NullBitmapBytes ¶
func (a *Binary) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Binary) NullN ¶
func (a *Binary) NullN() int
NullN returns the number of null values in the array.
func (*Binary) Release ¶
func (a *Binary) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Binary) Retain ¶
func (a *Binary) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Binary) ValueBytes ¶
func (*Binary) ValueOffset ¶
func (*Binary) ValueOffsets ¶
func (*Binary) ValueString ¶
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 ¶
type BinaryBuilder struct {
// contains filtered or unexported fields
}
A BinaryBuilder is used to build a Binary array using the Append methods.
func NewBinaryBuilder ¶
func NewBinaryBuilder(mem memory.Allocator, typE arrow.BinaryDataType) *BinaryBuilder
func (*BinaryBuilder) Append ¶
func (b *BinaryBuilder) Append(v []byte)
func (*BinaryBuilder) AppendNull ¶
func (b *BinaryBuilder) AppendNull()
func (*BinaryBuilder) AppendString ¶
func (b *BinaryBuilder) AppendString(v string)
func (*BinaryBuilder) AppendStringValues ¶
func (b *BinaryBuilder) AppendStringValues(v []string, valid []bool)
AppendStringValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*BinaryBuilder) AppendValues ¶
func (b *BinaryBuilder) AppendValues(v [][]byte, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*BinaryBuilder) Cap ¶
func (b *BinaryBuilder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*BinaryBuilder) Len ¶
func (b *BinaryBuilder) Len() int
Len returns the number of elements in the array builder.
func (*BinaryBuilder) NewBinaryArray ¶
func (b *BinaryBuilder) NewBinaryArray() (a *Binary)
NewBinaryArray creates a Binary array from the memory buffers used by the builder and resets the BinaryBuilder so it can be used to build a new array.
func (*BinaryBuilder) NullN ¶
func (b *BinaryBuilder) NullN() int
NullN returns the number of null values in the array builder.
func (*BinaryBuilder) Release ¶
func (b *BinaryBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.
func (*BinaryBuilder) Reserve ¶
func (b *BinaryBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*BinaryBuilder) Resize ¶
func (b *BinaryBuilder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*BinaryBuilder) Retain ¶
func (b *BinaryBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*BinaryBuilder) UnsafeAppendBoolToBitmap ¶
func (b *BinaryBuilder) UnsafeAppendBoolToBitmap(isValid bool)
func (*BinaryBuilder) Value ¶
func (b *BinaryBuilder) Value(i int) []byte
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of boolean values.
func NewBoolean ¶
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 nullN is not known, use UnknownNullCount to calculate the value of NullN at runtime from the nullBitmap buffer.
func NewBooleanData ¶
func (*Boolean) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Boolean) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Boolean) NullBitmapBytes ¶
func (a *Boolean) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Boolean) NullN ¶
func (a *Boolean) NullN() int
NullN returns the number of null values in the array.
func (*Boolean) Release ¶
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.
type BooleanBuilder ¶
type BooleanBuilder struct {
// contains filtered or unexported fields
}
func NewBooleanBuilder ¶
func NewBooleanBuilder(mem memory.Allocator) *BooleanBuilder
func (*BooleanBuilder) Append ¶
func (b *BooleanBuilder) Append(v bool)
func (*BooleanBuilder) AppendByte ¶
func (b *BooleanBuilder) AppendByte(v byte)
func (*BooleanBuilder) AppendNull ¶
func (b *BooleanBuilder) AppendNull()
func (*BooleanBuilder) AppendValues ¶
func (b *BooleanBuilder) AppendValues(v []bool, valid []bool)
func (*BooleanBuilder) Cap ¶
func (b *BooleanBuilder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*BooleanBuilder) Len ¶
func (b *BooleanBuilder) Len() int
Len returns the number of elements in the array builder.
func (*BooleanBuilder) NewBooleanArray ¶
func (b *BooleanBuilder) NewBooleanArray() (a *Boolean)
NewBooleanArray creates a Boolean array from the memory buffers used by the builder and resets the BooleanBuilder so it can be used to build a new array.
func (*BooleanBuilder) NullN ¶
func (b *BooleanBuilder) NullN() int
NullN returns the number of null values in the array builder.
func (*BooleanBuilder) Release ¶
func (b *BooleanBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed. Release may be called simultaneously from multiple goroutines.
func (*BooleanBuilder) Reserve ¶
func (b *BooleanBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*BooleanBuilder) Resize ¶
func (b *BooleanBuilder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*BooleanBuilder) Retain ¶
func (b *BooleanBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*BooleanBuilder) UnsafeAppend ¶
func (b *BooleanBuilder) UnsafeAppend(v bool)
func (*BooleanBuilder) UnsafeAppendBoolToBitmap ¶
func (b *BooleanBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
A type which represents the memory and metadata for an Arrow array.
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of float32 values.
func NewFloat32Data ¶
func (*Float32) Float32Values ¶
func (*Float32) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Float32) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Float32) NullBitmapBytes ¶
func (a *Float32) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Float32) NullN ¶
func (a *Float32) NullN() int
NullN returns the number of null values in the array.
func (*Float32) Release ¶
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.
type Float32Builder ¶
type Float32Builder struct {
// contains filtered or unexported fields
}
func NewFloat32Builder ¶
func NewFloat32Builder(mem memory.Allocator) *Float32Builder
func (*Float32Builder) Append ¶
func (b *Float32Builder) Append(v float32)
func (*Float32Builder) AppendNull ¶
func (b *Float32Builder) AppendNull()
func (*Float32Builder) AppendValues ¶
func (b *Float32Builder) AppendValues(v []float32, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Float32Builder) Cap ¶
func (b *Float32Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Float32Builder) Len ¶
func (b *Float32Builder) Len() int
Len returns the number of elements in the array builder.
func (*Float32Builder) NewFloat32Array ¶
func (b *Float32Builder) NewFloat32Array() (a *Float32)
NewFloat32Array creates a Float32 array from the memory buffers used by the builder and resets the Float32Builder so it can be used to build a new array.
func (*Float32Builder) NullN ¶
func (b *Float32Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Float32Builder) Release ¶
func (b *Float32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Float32Builder) Reserve ¶
func (b *Float32Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Float32Builder) Resize ¶
func (b *Float32Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Float32Builder) Retain ¶
func (b *Float32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Float32Builder) UnsafeAppend ¶
func (b *Float32Builder) UnsafeAppend(v float32)
func (*Float32Builder) UnsafeAppendBoolToBitmap ¶
func (b *Float32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of float64 values.
func NewFloat64Data ¶
func (*Float64) Float64Values ¶
func (*Float64) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Float64) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Float64) NullBitmapBytes ¶
func (a *Float64) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Float64) NullN ¶
func (a *Float64) NullN() int
NullN returns the number of null values in the array.
func (*Float64) Release ¶
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.
type Float64Builder ¶
type Float64Builder struct {
// contains filtered or unexported fields
}
func NewFloat64Builder ¶
func NewFloat64Builder(mem memory.Allocator) *Float64Builder
func (*Float64Builder) Append ¶
func (b *Float64Builder) Append(v float64)
func (*Float64Builder) AppendNull ¶
func (b *Float64Builder) AppendNull()
func (*Float64Builder) AppendValues ¶
func (b *Float64Builder) AppendValues(v []float64, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Float64Builder) Cap ¶
func (b *Float64Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Float64Builder) Len ¶
func (b *Float64Builder) Len() int
Len returns the number of elements in the array builder.
func (*Float64Builder) NewFloat64Array ¶
func (b *Float64Builder) NewFloat64Array() (a *Float64)
NewFloat64Array creates a Float64 array from the memory buffers used by the builder and resets the Float64Builder so it can be used to build a new array.
func (*Float64Builder) NullN ¶
func (b *Float64Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Float64Builder) Release ¶
func (b *Float64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Float64Builder) Reserve ¶
func (b *Float64Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Float64Builder) Resize ¶
func (b *Float64Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Float64Builder) Retain ¶
func (b *Float64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Float64Builder) UnsafeAppend ¶
func (b *Float64Builder) UnsafeAppend(v float64)
func (*Float64Builder) UnsafeAppendBoolToBitmap ¶
func (b *Float64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int16 values.
func NewInt16Data ¶
func (*Int16) Int16Values ¶
func (*Int16) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int16) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int16) NullBitmapBytes ¶
func (a *Int16) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Int16) NullN ¶
func (a *Int16) NullN() int
NullN returns the number of null values in the array.
func (*Int16) Release ¶
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.
type Int16Builder ¶
type Int16Builder struct {
// contains filtered or unexported fields
}
func NewInt16Builder ¶
func NewInt16Builder(mem memory.Allocator) *Int16Builder
func (*Int16Builder) Append ¶
func (b *Int16Builder) Append(v int16)
func (*Int16Builder) AppendNull ¶
func (b *Int16Builder) AppendNull()
func (*Int16Builder) AppendValues ¶
func (b *Int16Builder) AppendValues(v []int16, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Int16Builder) Cap ¶
func (b *Int16Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Int16Builder) Len ¶
func (b *Int16Builder) Len() int
Len returns the number of elements in the array builder.
func (*Int16Builder) NewInt16Array ¶
func (b *Int16Builder) NewInt16Array() (a *Int16)
NewInt16Array creates a Int16 array from the memory buffers used by the builder and resets the Int16Builder so it can be used to build a new array.
func (*Int16Builder) NullN ¶
func (b *Int16Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Int16Builder) Release ¶
func (b *Int16Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Int16Builder) Reserve ¶
func (b *Int16Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Int16Builder) Resize ¶
func (b *Int16Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Int16Builder) Retain ¶
func (b *Int16Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Int16Builder) UnsafeAppend ¶
func (b *Int16Builder) UnsafeAppend(v int16)
func (*Int16Builder) UnsafeAppendBoolToBitmap ¶
func (b *Int16Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int32 values.
func NewInt32Data ¶
func (*Int32) Int32Values ¶
func (*Int32) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int32) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int32) NullBitmapBytes ¶
func (a *Int32) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Int32) NullN ¶
func (a *Int32) NullN() int
NullN returns the number of null values in the array.
func (*Int32) Release ¶
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.
type Int32Builder ¶
type Int32Builder struct {
// contains filtered or unexported fields
}
func NewInt32Builder ¶
func NewInt32Builder(mem memory.Allocator) *Int32Builder
func (*Int32Builder) Append ¶
func (b *Int32Builder) Append(v int32)
func (*Int32Builder) AppendNull ¶
func (b *Int32Builder) AppendNull()
func (*Int32Builder) AppendValues ¶
func (b *Int32Builder) AppendValues(v []int32, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Int32Builder) Cap ¶
func (b *Int32Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Int32Builder) Len ¶
func (b *Int32Builder) Len() int
Len returns the number of elements in the array builder.
func (*Int32Builder) NewInt32Array ¶
func (b *Int32Builder) NewInt32Array() (a *Int32)
NewInt32Array creates a Int32 array from the memory buffers used by the builder and resets the Int32Builder so it can be used to build a new array.
func (*Int32Builder) NullN ¶
func (b *Int32Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Int32Builder) Release ¶
func (b *Int32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Int32Builder) Reserve ¶
func (b *Int32Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Int32Builder) Resize ¶
func (b *Int32Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Int32Builder) Retain ¶
func (b *Int32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Int32Builder) UnsafeAppend ¶
func (b *Int32Builder) UnsafeAppend(v int32)
func (*Int32Builder) UnsafeAppendBoolToBitmap ¶
func (b *Int32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int64 values.
func NewInt64Data ¶
func (*Int64) Int64Values ¶
func (*Int64) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int64) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int64) NullBitmapBytes ¶
func (a *Int64) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Int64) NullN ¶
func (a *Int64) NullN() int
NullN returns the number of null values in the array.
func (*Int64) Release ¶
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.
type Int64Builder ¶
type Int64Builder struct {
// contains filtered or unexported fields
}
func NewInt64Builder ¶
func NewInt64Builder(mem memory.Allocator) *Int64Builder
func (*Int64Builder) Append ¶
func (b *Int64Builder) Append(v int64)
func (*Int64Builder) AppendNull ¶
func (b *Int64Builder) AppendNull()
func (*Int64Builder) AppendValues ¶
func (b *Int64Builder) AppendValues(v []int64, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Int64Builder) Cap ¶
func (b *Int64Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Int64Builder) Len ¶
func (b *Int64Builder) Len() int
Len returns the number of elements in the array builder.
func (*Int64Builder) NewInt64Array ¶
func (b *Int64Builder) NewInt64Array() (a *Int64)
NewInt64Array creates a Int64 array from the memory buffers used by the builder and resets the Int64Builder so it can be used to build a new array.
func (*Int64Builder) NullN ¶
func (b *Int64Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Int64Builder) Release ¶
func (b *Int64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Int64Builder) Reserve ¶
func (b *Int64Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Int64Builder) Resize ¶
func (b *Int64Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Int64Builder) Retain ¶
func (b *Int64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Int64Builder) UnsafeAppend ¶
func (b *Int64Builder) UnsafeAppend(v int64)
func (*Int64Builder) UnsafeAppendBoolToBitmap ¶
func (b *Int64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of int8 values.
func NewInt8Data ¶
func (*Int8) Int8Values ¶
func (*Int8) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int8) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Int8) NullBitmapBytes ¶
func (a *Int8) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Int8) NullN ¶
func (a *Int8) NullN() int
NullN returns the number of null values in the array.
func (*Int8) Release ¶
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.
type Int8Builder ¶
type Int8Builder struct {
// contains filtered or unexported fields
}
func NewInt8Builder ¶
func NewInt8Builder(mem memory.Allocator) *Int8Builder
func (*Int8Builder) Append ¶
func (b *Int8Builder) Append(v int8)
func (*Int8Builder) AppendNull ¶
func (b *Int8Builder) AppendNull()
func (*Int8Builder) AppendValues ¶
func (b *Int8Builder) AppendValues(v []int8, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Int8Builder) Cap ¶
func (b *Int8Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Int8Builder) Len ¶
func (b *Int8Builder) Len() int
Len returns the number of elements in the array builder.
func (*Int8Builder) NewInt8Array ¶
func (b *Int8Builder) NewInt8Array() (a *Int8)
NewInt8Array creates a Int8 array from the memory buffers used by the builder and resets the Int8Builder so it can be used to build a new array.
func (*Int8Builder) NullN ¶
func (b *Int8Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Int8Builder) Release ¶
func (b *Int8Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Int8Builder) Reserve ¶
func (b *Int8Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Int8Builder) Resize ¶
func (b *Int8Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Int8Builder) Retain ¶
func (b *Int8Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Int8Builder) UnsafeAppend ¶
func (b *Int8Builder) UnsafeAppend(v int8)
func (*Int8Builder) UnsafeAppendBoolToBitmap ¶
func (b *Int8Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Interface ¶
type Interface interface { // DataType returns the type metadata for this instance. DataType() arrow.DataType // NullN returns the number of null values in the array. NullN() int // NullBitmapBytes returns a byte slice of the validity bitmap. NullBitmapBytes() []byte // IsNull returns true if value at index is null. // NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len. IsNull(i int) bool // IsValid returns true if value at index is not null. // NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len. IsValid(i int) bool Data() *Data // Len returns the number of elements in the array. Len() int // Retain increases the reference count by 1. // Retain may be called simultaneously from multiple goroutines. Retain() // Release decreases the reference count by 1. // Release may be called simultaneously from multiple goroutines. // When the reference count goes to zero, the memory is freed. Release() }
A type which satisfies array.Interface represents an immutable sequence of values.
func MakeFromData ¶
MakeFromData constructs a strongly-typed array instance from generic Data.
type Timestamp ¶
type Timestamp struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of arrow.Timestamp values.
func NewTimestampData ¶
func (*Timestamp) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Timestamp) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Timestamp) Len ¶
func (a *Timestamp) Len() int
Len returns the number of elements in the array.
func (*Timestamp) NullBitmapBytes ¶
func (a *Timestamp) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Timestamp) NullN ¶
func (a *Timestamp) NullN() int
NullN returns the number of null values in the array.
func (*Timestamp) Release ¶
func (a *Timestamp) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Timestamp) Retain ¶
func (a *Timestamp) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Timestamp) TimestampValues ¶
type TimestampBuilder ¶
type TimestampBuilder struct {
// contains filtered or unexported fields
}
func NewTimestampBuilder ¶
func NewTimestampBuilder(mem memory.Allocator, typE *arrow.TimestampType) *TimestampBuilder
func (*TimestampBuilder) Append ¶
func (b *TimestampBuilder) Append(v arrow.Timestamp)
func (*TimestampBuilder) AppendNull ¶
func (b *TimestampBuilder) AppendNull()
func (*TimestampBuilder) AppendValues ¶
func (b *TimestampBuilder) AppendValues(v []arrow.Timestamp, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*TimestampBuilder) Cap ¶
func (b *TimestampBuilder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*TimestampBuilder) Len ¶
func (b *TimestampBuilder) Len() int
Len returns the number of elements in the array builder.
func (*TimestampBuilder) NewTimestampArray ¶
func (b *TimestampBuilder) NewTimestampArray() (a *Timestamp)
NewTimestampArray creates a Timestamp array from the memory buffers used by the builder and resets the TimestampBuilder so it can be used to build a new array.
func (*TimestampBuilder) NullN ¶
func (b *TimestampBuilder) NullN() int
NullN returns the number of null values in the array builder.
func (*TimestampBuilder) Release ¶
func (b *TimestampBuilder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*TimestampBuilder) Reserve ¶
func (b *TimestampBuilder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*TimestampBuilder) Resize ¶
func (b *TimestampBuilder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*TimestampBuilder) Retain ¶
func (b *TimestampBuilder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*TimestampBuilder) UnsafeAppend ¶
func (b *TimestampBuilder) UnsafeAppend(v arrow.Timestamp)
func (*TimestampBuilder) UnsafeAppendBoolToBitmap ¶
func (b *TimestampBuilder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint16 ¶
type Uint16 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint16 values.
func NewUint16Data ¶
func (*Uint16) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint16) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint16) NullBitmapBytes ¶
func (a *Uint16) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Uint16) NullN ¶
func (a *Uint16) NullN() int
NullN returns the number of null values in the array.
func (*Uint16) Release ¶
func (a *Uint16) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Uint16) Retain ¶
func (a *Uint16) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint16) Uint16Values ¶
type Uint16Builder ¶
type Uint16Builder struct {
// contains filtered or unexported fields
}
func NewUint16Builder ¶
func NewUint16Builder(mem memory.Allocator) *Uint16Builder
func (*Uint16Builder) Append ¶
func (b *Uint16Builder) Append(v uint16)
func (*Uint16Builder) AppendNull ¶
func (b *Uint16Builder) AppendNull()
func (*Uint16Builder) AppendValues ¶
func (b *Uint16Builder) AppendValues(v []uint16, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Uint16Builder) Cap ¶
func (b *Uint16Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Uint16Builder) Len ¶
func (b *Uint16Builder) Len() int
Len returns the number of elements in the array builder.
func (*Uint16Builder) NewUint16Array ¶
func (b *Uint16Builder) NewUint16Array() (a *Uint16)
NewUint16Array creates a Uint16 array from the memory buffers used by the builder and resets the Uint16Builder so it can be used to build a new array.
func (*Uint16Builder) NullN ¶
func (b *Uint16Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Uint16Builder) Release ¶
func (b *Uint16Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Uint16Builder) Reserve ¶
func (b *Uint16Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Uint16Builder) Resize ¶
func (b *Uint16Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Uint16Builder) Retain ¶
func (b *Uint16Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint16Builder) UnsafeAppend ¶
func (b *Uint16Builder) UnsafeAppend(v uint16)
func (*Uint16Builder) UnsafeAppendBoolToBitmap ¶
func (b *Uint16Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint32 values.
func NewUint32Data ¶
func (*Uint32) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint32) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint32) NullBitmapBytes ¶
func (a *Uint32) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Uint32) NullN ¶
func (a *Uint32) NullN() int
NullN returns the number of null values in the array.
func (*Uint32) Release ¶
func (a *Uint32) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Uint32) Retain ¶
func (a *Uint32) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint32) Uint32Values ¶
type Uint32Builder ¶
type Uint32Builder struct {
// contains filtered or unexported fields
}
func NewUint32Builder ¶
func NewUint32Builder(mem memory.Allocator) *Uint32Builder
func (*Uint32Builder) Append ¶
func (b *Uint32Builder) Append(v uint32)
func (*Uint32Builder) AppendNull ¶
func (b *Uint32Builder) AppendNull()
func (*Uint32Builder) AppendValues ¶
func (b *Uint32Builder) AppendValues(v []uint32, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Uint32Builder) Cap ¶
func (b *Uint32Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Uint32Builder) Len ¶
func (b *Uint32Builder) Len() int
Len returns the number of elements in the array builder.
func (*Uint32Builder) NewUint32Array ¶
func (b *Uint32Builder) NewUint32Array() (a *Uint32)
NewUint32Array creates a Uint32 array from the memory buffers used by the builder and resets the Uint32Builder so it can be used to build a new array.
func (*Uint32Builder) NullN ¶
func (b *Uint32Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Uint32Builder) Release ¶
func (b *Uint32Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Uint32Builder) Reserve ¶
func (b *Uint32Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Uint32Builder) Resize ¶
func (b *Uint32Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Uint32Builder) Retain ¶
func (b *Uint32Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint32Builder) UnsafeAppend ¶
func (b *Uint32Builder) UnsafeAppend(v uint32)
func (*Uint32Builder) UnsafeAppendBoolToBitmap ¶
func (b *Uint32Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint64 values.
func NewUint64Data ¶
func (*Uint64) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint64) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint64) NullBitmapBytes ¶
func (a *Uint64) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Uint64) NullN ¶
func (a *Uint64) NullN() int
NullN returns the number of null values in the array.
func (*Uint64) Release ¶
func (a *Uint64) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Uint64) Retain ¶
func (a *Uint64) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint64) Uint64Values ¶
type Uint64Builder ¶
type Uint64Builder struct {
// contains filtered or unexported fields
}
func NewUint64Builder ¶
func NewUint64Builder(mem memory.Allocator) *Uint64Builder
func (*Uint64Builder) Append ¶
func (b *Uint64Builder) Append(v uint64)
func (*Uint64Builder) AppendNull ¶
func (b *Uint64Builder) AppendNull()
func (*Uint64Builder) AppendValues ¶
func (b *Uint64Builder) AppendValues(v []uint64, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Uint64Builder) Cap ¶
func (b *Uint64Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Uint64Builder) Len ¶
func (b *Uint64Builder) Len() int
Len returns the number of elements in the array builder.
func (*Uint64Builder) NewUint64Array ¶
func (b *Uint64Builder) NewUint64Array() (a *Uint64)
NewUint64Array creates a Uint64 array from the memory buffers used by the builder and resets the Uint64Builder so it can be used to build a new array.
func (*Uint64Builder) NullN ¶
func (b *Uint64Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Uint64Builder) Release ¶
func (b *Uint64Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Uint64Builder) Reserve ¶
func (b *Uint64Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Uint64Builder) Resize ¶
func (b *Uint64Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Uint64Builder) Retain ¶
func (b *Uint64Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint64Builder) UnsafeAppend ¶
func (b *Uint64Builder) UnsafeAppend(v uint64)
func (*Uint64Builder) UnsafeAppendBoolToBitmap ¶
func (b *Uint64Builder) UnsafeAppendBoolToBitmap(isValid bool)
type Uint8 ¶
type Uint8 struct {
// contains filtered or unexported fields
}
A type which represents an immutable sequence of uint8 values.
func NewUint8Data ¶
func (*Uint8) IsNull ¶
IsNull returns true if value at index is null. NOTE: IsNull will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint8) IsValid ¶
IsValid returns true if value at index is not null. NOTE: IsValid will panic if NullBitmapBytes is not empty and 0 > i ≥ Len.
func (*Uint8) NullBitmapBytes ¶
func (a *Uint8) NullBitmapBytes() []byte
NullBitmapBytes returns a byte slice of the validity bitmap.
func (*Uint8) NullN ¶
func (a *Uint8) NullN() int
NullN returns the number of null values in the array.
func (*Uint8) Release ¶
func (a *Uint8) Release()
Release decreases the reference count by 1. Release may be called simultaneously from multiple goroutines. When the reference count goes to zero, the memory is freed.
func (*Uint8) Retain ¶
func (a *Uint8) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint8) Uint8Values ¶
type Uint8Builder ¶
type Uint8Builder struct {
// contains filtered or unexported fields
}
func NewUint8Builder ¶
func NewUint8Builder(mem memory.Allocator) *Uint8Builder
func (*Uint8Builder) Append ¶
func (b *Uint8Builder) Append(v uint8)
func (*Uint8Builder) AppendNull ¶
func (b *Uint8Builder) AppendNull()
func (*Uint8Builder) AppendValues ¶
func (b *Uint8Builder) AppendValues(v []uint8, valid []bool)
AppendValues will append the values in the v slice. The valid slice determines which values in v are valid (not null). The valid slice must either be empty or be equal in length to v. If empty, all values in v are appended and considered valid.
func (*Uint8Builder) Cap ¶
func (b *Uint8Builder) Cap() int
Cap returns the total number of elements that can be stored without allocating additional memory.
func (*Uint8Builder) Len ¶
func (b *Uint8Builder) Len() int
Len returns the number of elements in the array builder.
func (*Uint8Builder) NewUint8Array ¶
func (b *Uint8Builder) NewUint8Array() (a *Uint8)
NewUint8Array creates a Uint8 array from the memory buffers used by the builder and resets the Uint8Builder so it can be used to build a new array.
func (*Uint8Builder) NullN ¶
func (b *Uint8Builder) NullN() int
NullN returns the number of null values in the array builder.
func (*Uint8Builder) Release ¶
func (b *Uint8Builder) Release()
Release decreases the reference count by 1. When the reference count goes to zero, the memory is freed.
func (*Uint8Builder) Reserve ¶
func (b *Uint8Builder) Reserve(n int)
Reserve ensures there is enough space for appending n elements by checking the capacity and calling Resize if necessary.
func (*Uint8Builder) Resize ¶
func (b *Uint8Builder) Resize(n int)
Resize adjusts the space allocated by b to n elements. If n is greater than b.Cap(), additional memory will be allocated. If n is smaller, the allocated memory may reduced.
func (*Uint8Builder) Retain ¶
func (b *Uint8Builder) Retain()
Retain increases the reference count by 1. Retain may be called simultaneously from multiple goroutines.
func (*Uint8Builder) UnsafeAppend ¶
func (b *Uint8Builder) UnsafeAppend(v uint8)
func (*Uint8Builder) UnsafeAppendBoolToBitmap ¶
func (b *Uint8Builder) UnsafeAppendBoolToBitmap(isValid bool)