package scalar

Import Path
	github.com/apache/arrow-go/v18/arrow/scalar (on go.dev)

Dependency Relation
	imports 26 packages, and imported by 6 packages


Package-Level Type Names (total 53)
/* sort by: | */
scalar.Type arrow.DataType scalar.Valid bool Value *memory.Buffer (*Binary) Buffer() *memory.Buffer (*Binary) CastTo(to arrow.DataType) (Scalar, error) (*Binary) Data() []byte ( Binary) DataType() arrow.DataType (*Binary) IsValid() bool (*Binary) Release() (*Binary) Retain() (*Binary) String() string (*Binary) Validate() (err error) (*Binary) ValidateFull() error *Binary : BinaryScalar *Binary : PrimitiveScalar *Binary : Releasable *Binary : Scalar *Binary : database/sql/driver.Validator *Binary : expvar.Var *Binary : fmt.Stringer func NewBinaryScalar(val *memory.Buffer, typ arrow.DataType) *Binary
( BinaryScalar) Buffer() *memory.Buffer Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. ( BinaryScalar) Data() []byte The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( BinaryScalar) Release() ( BinaryScalar) Retain() ( BinaryScalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Binary *FixedSizeBinary LargeBinary LargeString *String BinaryScalar : PrimitiveScalar BinaryScalar : Releasable BinaryScalar : Scalar BinaryScalar : database/sql/driver.Validator BinaryScalar : expvar.Var BinaryScalar : fmt.Stringer func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.UnboxBinaryScalar(val BinaryScalar) []byte
scalar.Type arrow.DataType scalar.Valid bool Value bool (*Boolean) CastTo(dt arrow.DataType) (Scalar, error) (*Boolean) Data() []byte ( Boolean) DataType() arrow.DataType (*Boolean) IsValid() bool (*Boolean) String() string (*Boolean) Validate() error (*Boolean) ValidateFull() error *Boolean : PrimitiveScalar *Boolean : Scalar *Boolean : database/sql/driver.Validator *Boolean : expvar.Var *Boolean : fmt.Stringer func NewBooleanScalar(val bool) *Boolean
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Date32 (*Date32) CastTo(to arrow.DataType) (Scalar, error) (*Date32) Data() []byte ( Date32) DataType() arrow.DataType (*Date32) IsValid() bool (*Date32) String() string (*Date32) ToTime() time.Time (*Date32) Validate() error (*Date32) ValidateFull() error *Date32 : DateScalar *Date32 : PrimitiveScalar *Date32 : Scalar *Date32 : TemporalScalar *Date32 : database/sql/driver.Validator *Date32 : expvar.Var *Date32 : fmt.Stringer func NewDate32Scalar(val arrow.Date32) *Date32
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Date64 (*Date64) CastTo(to arrow.DataType) (Scalar, error) (*Date64) Data() []byte ( Date64) DataType() arrow.DataType (*Date64) IsValid() bool (*Date64) String() string (*Date64) ToTime() time.Time (*Date64) Validate() error (*Date64) ValidateFull() error *Date64 : DateScalar *Date64 : PrimitiveScalar *Date64 : Scalar *Date64 : TemporalScalar *Date64 : database/sql/driver.Validator *Date64 : expvar.Var *Date64 : fmt.Stringer func NewDate64Scalar(val arrow.Date64) *Date64
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( DateScalar) String() string ( DateScalar) ToTime() time.Time Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Date32 *Date64 DateScalar : Scalar DateScalar : TemporalScalar DateScalar : database/sql/driver.Validator DateScalar : expvar.Var DateScalar : fmt.Stringer
scalar.Type arrow.DataType scalar.Valid bool Value arrow.DayTimeInterval (*DayTimeInterval) CastTo(to arrow.DataType) (Scalar, error) (*DayTimeInterval) Data() []byte ( DayTimeInterval) DataType() arrow.DataType (*DayTimeInterval) IsValid() bool (*DayTimeInterval) String() string (*DayTimeInterval) Validate() error (*DayTimeInterval) ValidateFull() error *DayTimeInterval : IntervalScalar *DayTimeInterval : PrimitiveScalar *DayTimeInterval : Scalar *DayTimeInterval : TemporalScalar *DayTimeInterval : database/sql/driver.Validator *DayTimeInterval : expvar.Var *DayTimeInterval : fmt.Stringer func NewDayTimeIntervalScalar(val arrow.DayTimeInterval) *DayTimeInterval
scalar.Type arrow.DataType scalar.Valid bool Value decimal128.Num (*Decimal128) CastTo(to arrow.DataType) (Scalar, error) (*Decimal128) Data() []byte ( Decimal128) DataType() arrow.DataType (*Decimal128) IsValid() bool (*Decimal128) String() string (*Decimal128) Validate() error (*Decimal128) ValidateFull() error *Decimal128 : PrimitiveScalar *Decimal128 : Scalar *Decimal128 : database/sql/driver.Validator *Decimal128 : expvar.Var *Decimal128 : fmt.Stringer func NewDecimal128Scalar(val decimal128.Num, typ arrow.DataType) *Decimal128
scalar.Type arrow.DataType scalar.Valid bool Value decimal256.Num (*Decimal256) CastTo(to arrow.DataType) (Scalar, error) (*Decimal256) Data() []byte ( Decimal256) DataType() arrow.DataType (*Decimal256) IsValid() bool (*Decimal256) String() string (*Decimal256) Validate() error (*Decimal256) ValidateFull() error *Decimal256 : PrimitiveScalar *Decimal256 : Scalar *Decimal256 : database/sql/driver.Validator *Decimal256 : expvar.Var *Decimal256 : fmt.Stringer func NewDecimal256Scalar(val decimal256.Num, typ arrow.DataType) *Decimal256
scalar.Type arrow.DataType scalar.Valid bool TypeCode arrow.UnionTypeCode Value Scalar (*DenseUnion) CastTo(to arrow.DataType) (Scalar, error) (*DenseUnion) ChildValue() Scalar ( DenseUnion) DataType() arrow.DataType (*DenseUnion) IsValid() bool (*DenseUnion) Release() (*DenseUnion) Retain() (*DenseUnion) String() string (*DenseUnion) Validate() (err error) (*DenseUnion) ValidateFull() error *DenseUnion : Releasable *DenseUnion : Scalar *DenseUnion : Union *DenseUnion : database/sql/driver.Validator *DenseUnion : expvar.Var *DenseUnion : fmt.Stringer func NewDenseUnionScalar(v Scalar, code arrow.UnionTypeCode, dt *arrow.DenseUnionType) *DenseUnion
scalar.Type arrow.DataType scalar.Valid bool Value struct{Index Scalar; Dict arrow.Array} (*Dictionary) CastTo(arrow.DataType) (Scalar, error) (*Dictionary) Data() []byte ( Dictionary) DataType() arrow.DataType (*Dictionary) GetEncodedValue() (Scalar, error) (*Dictionary) IsValid() bool (*Dictionary) Release() (*Dictionary) Retain() (*Dictionary) String() string (*Dictionary) Validate() (err error) (*Dictionary) ValidateFull() (err error) *Dictionary : PrimitiveScalar *Dictionary : Releasable *Dictionary : Scalar *Dictionary : database/sql/driver.Validator *Dictionary : expvar.Var *Dictionary : fmt.Stringer func NewDictScalar(index Scalar, dict arrow.Array) *Dictionary func NewNullDictScalar(dt arrow.DataType) *Dictionary
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Duration (*Duration) CastTo(to arrow.DataType) (Scalar, error) (*Duration) Data() []byte ( Duration) DataType() arrow.DataType (*Duration) IsValid() bool (*Duration) String() string (*Duration) Unit() arrow.TimeUnit (*Duration) Validate() error (*Duration) ValidateFull() error *Duration : PrimitiveScalar *Duration : Scalar *Duration : TemporalScalar *Duration : database/sql/driver.Validator *Duration : expvar.Var *Duration : fmt.Stringer func NewDurationScalar(val arrow.Duration, typ arrow.DataType) *Duration
EqualOption is a functional option type used to configure how Records and Arrays are compared. func WithAbsTolerance(atol float64) EqualOption func WithNaNsEqual(val bool) EqualOption func ApproxEquals(left, right Scalar, opts ...EqualOption) bool
scalar.Type arrow.DataType scalar.Valid bool Value Scalar (*Extension) CastTo(to arrow.DataType) (Scalar, error) ( Extension) DataType() arrow.DataType (*Extension) IsValid() bool (*Extension) String() string (*Extension) Validate() (err error) (*Extension) ValidateFull() error *Extension : Scalar *Extension : database/sql/driver.Validator *Extension : expvar.Var *Extension : fmt.Stringer func NewExtensionScalar(storage Scalar, typ arrow.DataType) *Extension
Binary *Binary Binary.scalar.Type arrow.DataType Binary.scalar.Valid bool Binary.Value *memory.Buffer ( FixedSizeBinary) Buffer() *memory.Buffer ( FixedSizeBinary) CastTo(to arrow.DataType) (Scalar, error) ( FixedSizeBinary) Data() []byte ( FixedSizeBinary) DataType() arrow.DataType ( FixedSizeBinary) IsValid() bool ( FixedSizeBinary) Release() ( FixedSizeBinary) Retain() ( FixedSizeBinary) String() string (*FixedSizeBinary) Validate() (err error) (*FixedSizeBinary) ValidateFull() error *FixedSizeBinary : BinaryScalar *FixedSizeBinary : PrimitiveScalar FixedSizeBinary : Releasable *FixedSizeBinary : Scalar FixedSizeBinary : database/sql/driver.Validator FixedSizeBinary : expvar.Var FixedSizeBinary : fmt.Stringer func NewFixedSizeBinaryScalar(val *memory.Buffer, typ arrow.DataType) *FixedSizeBinary
List *List List.scalar.Type arrow.DataType List.scalar.Valid bool List.Value arrow.Array ( FixedSizeList) CastTo(to arrow.DataType) (Scalar, error) ( FixedSizeList) DataType() arrow.DataType ( FixedSizeList) GetList() arrow.Array ( FixedSizeList) IsValid() bool ( FixedSizeList) Release() ( FixedSizeList) Retain() ( FixedSizeList) String() string (*FixedSizeList) Validate() (err error) (*FixedSizeList) ValidateFull() error *FixedSizeList : ListScalar FixedSizeList : Releasable *FixedSizeList : Scalar FixedSizeList : database/sql/driver.Validator FixedSizeList : expvar.Var FixedSizeList : fmt.Stringer func NewFixedSizeListScalar(val arrow.Array) *FixedSizeList func NewFixedSizeListScalarWithType(val arrow.Array, typ arrow.DataType) *FixedSizeList
scalar.Type arrow.DataType scalar.Valid bool Value float16.Num (*Float16) CastTo(to arrow.DataType) (Scalar, error) (*Float16) Data() []byte ( Float16) DataType() arrow.DataType (*Float16) IsValid() bool (*Float16) String() string (*Float16) Validate() error (*Float16) ValidateFull() error *Float16 : PrimitiveScalar *Float16 : Scalar *Float16 : database/sql/driver.Validator *Float16 : expvar.Var *Float16 : fmt.Stringer func NewFloat16Scalar(val float16.Num) *Float16 func NewFloat16ScalarFromFloat32(val float32) *Float16
scalar.Type arrow.DataType scalar.Valid bool Value float32 (*Float32) CastTo(dt arrow.DataType) (Scalar, error) (*Float32) Data() []byte ( Float32) DataType() arrow.DataType (*Float32) IsValid() bool (*Float32) String() string (*Float32) Validate() error (*Float32) ValidateFull() error *Float32 : PrimitiveScalar *Float32 : Scalar *Float32 : database/sql/driver.Validator *Float32 : expvar.Var *Float32 : fmt.Stringer func NewFloat32Scalar(val float32) *Float32
scalar.Type arrow.DataType scalar.Valid bool Value float64 (*Float64) CastTo(dt arrow.DataType) (Scalar, error) (*Float64) Data() []byte ( Float64) DataType() arrow.DataType (*Float64) IsValid() bool (*Float64) String() string (*Float64) Validate() error (*Float64) ValidateFull() error *Float64 : PrimitiveScalar *Float64 : Scalar *Float64 : database/sql/driver.Validator *Float64 : expvar.Var *Float64 : fmt.Stringer func NewFloat64Scalar(val float64) *Float64
scalar.Type arrow.DataType scalar.Valid bool Value int16 (*Int16) CastTo(dt arrow.DataType) (Scalar, error) (*Int16) Data() []byte ( Int16) DataType() arrow.DataType (*Int16) IsValid() bool (*Int16) String() string (*Int16) Validate() error (*Int16) ValidateFull() error *Int16 : PrimitiveScalar *Int16 : Scalar *Int16 : database/sql/driver.Validator *Int16 : expvar.Var *Int16 : fmt.Stringer func NewInt16Scalar(val int16) *Int16
scalar.Type arrow.DataType scalar.Valid bool Value int32 (*Int32) CastTo(dt arrow.DataType) (Scalar, error) (*Int32) Data() []byte ( Int32) DataType() arrow.DataType (*Int32) IsValid() bool (*Int32) String() string (*Int32) Validate() error (*Int32) ValidateFull() error *Int32 : PrimitiveScalar *Int32 : Scalar *Int32 : database/sql/driver.Validator *Int32 : expvar.Var *Int32 : fmt.Stringer func NewInt32Scalar(val int32) *Int32
scalar.Type arrow.DataType scalar.Valid bool Value int64 (*Int64) CastTo(dt arrow.DataType) (Scalar, error) (*Int64) Data() []byte ( Int64) DataType() arrow.DataType (*Int64) IsValid() bool (*Int64) String() string (*Int64) Validate() error (*Int64) ValidateFull() error *Int64 : PrimitiveScalar *Int64 : Scalar *Int64 : database/sql/driver.Validator *Int64 : expvar.Var *Int64 : fmt.Stringer func NewInt64Scalar(val int64) *Int64
scalar.Type arrow.DataType scalar.Valid bool Value int8 (*Int8) CastTo(dt arrow.DataType) (Scalar, error) (*Int8) Data() []byte ( Int8) DataType() arrow.DataType (*Int8) IsValid() bool (*Int8) String() string (*Int8) Validate() error (*Int8) ValidateFull() error *Int8 : PrimitiveScalar *Int8 : Scalar *Int8 : database/sql/driver.Validator *Int8 : expvar.Var *Int8 : fmt.Stringer func NewInt8Scalar(val int8) *Int8
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( IntervalScalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *DayTimeInterval *MonthDayNanoInterval *MonthInterval IntervalScalar : Scalar IntervalScalar : TemporalScalar IntervalScalar : database/sql/driver.Validator IntervalScalar : expvar.Var IntervalScalar : fmt.Stringer
Binary *Binary Binary.scalar.Type arrow.DataType Binary.scalar.Valid bool Binary.Value *memory.Buffer ( LargeBinary) Buffer() *memory.Buffer ( LargeBinary) CastTo(to arrow.DataType) (Scalar, error) ( LargeBinary) Data() []byte ( LargeBinary) DataType() arrow.DataType ( LargeBinary) IsValid() bool ( LargeBinary) Release() ( LargeBinary) Retain() ( LargeBinary) String() string ( LargeBinary) Validate() (err error) ( LargeBinary) ValidateFull() error LargeBinary : BinaryScalar LargeBinary : PrimitiveScalar LargeBinary : Releasable LargeBinary : Scalar LargeBinary : database/sql/driver.Validator LargeBinary : expvar.Var LargeBinary : fmt.Stringer func NewLargeBinaryScalar(val *memory.Buffer) *LargeBinary
List *List List.scalar.Type arrow.DataType List.scalar.Valid bool List.Value arrow.Array ( LargeList) CastTo(to arrow.DataType) (Scalar, error) ( LargeList) DataType() arrow.DataType ( LargeList) GetList() arrow.Array ( LargeList) IsValid() bool ( LargeList) Release() ( LargeList) Retain() ( LargeList) String() string ( LargeList) Validate() (err error) ( LargeList) ValidateFull() error LargeList : ListScalar LargeList : Releasable LargeList : Scalar LargeList : database/sql/driver.Validator LargeList : expvar.Var LargeList : fmt.Stringer func NewLargeListScalar(val arrow.Array) *LargeList func NewLargeListScalarData(val arrow.ArrayData) *LargeList
stringScalar.Binary *Binary stringScalar.Binary.scalar.Type arrow.DataType stringScalar.Binary.scalar.Valid bool stringScalar.Binary.Value *memory.Buffer ( LargeString) Buffer() *memory.Buffer ( LargeString) CastTo(to arrow.DataType) (Scalar, error) ( LargeString) Data() []byte ( LargeString) DataType() arrow.DataType ( LargeString) IsValid() bool ( LargeString) Release() ( LargeString) Retain() ( LargeString) String() string ( LargeString) Validate() error ( LargeString) ValidateFull() (err error) LargeString : BinaryScalar LargeString : PrimitiveScalar LargeString : Releasable LargeString : Scalar LargeString : database/sql/driver.Validator LargeString : expvar.Var LargeString : fmt.Stringer func NewLargeStringScalar(val string) *LargeString func NewLargeStringScalarFromBuffer(val *memory.Buffer) *LargeString
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Array (*List) CastTo(to arrow.DataType) (Scalar, error) ( List) DataType() arrow.DataType (*List) GetList() arrow.Array (*List) IsValid() bool (*List) Release() (*List) Retain() (*List) String() string (*List) Validate() (err error) (*List) ValidateFull() error *List : ListScalar *List : Releasable *List : Scalar *List : database/sql/driver.Validator *List : expvar.Var *List : fmt.Stringer func NewListScalar(val arrow.Array) *List func NewListScalarData(val arrow.ArrayData) *List
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar ( ListScalar) GetList() arrow.Array IsValid returns true if the value is non-null, otherwise false. ( ListScalar) Release() ( ListScalar) Retain() ( ListScalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *FixedSizeList LargeList *List Map ListScalar : Releasable ListScalar : Scalar ListScalar : database/sql/driver.Validator ListScalar : expvar.Var ListScalar : fmt.Stringer
List *List List.scalar.Type arrow.DataType List.scalar.Valid bool List.Value arrow.Array ( Map) CastTo(to arrow.DataType) (Scalar, error) ( Map) DataType() arrow.DataType ( Map) GetList() arrow.Array ( Map) IsValid() bool ( Map) Release() ( Map) Retain() ( Map) String() string ( Map) Validate() (err error) ( Map) ValidateFull() error Map : ListScalar Map : Releasable Map : Scalar Map : database/sql/driver.Validator Map : expvar.Var Map : fmt.Stringer func NewMapScalar(val arrow.Array) *Map
scalar.Type arrow.DataType scalar.Valid bool Value arrow.MonthDayNanoInterval (*MonthDayNanoInterval) CastTo(to arrow.DataType) (Scalar, error) (*MonthDayNanoInterval) Data() []byte ( MonthDayNanoInterval) DataType() arrow.DataType (*MonthDayNanoInterval) IsValid() bool (*MonthDayNanoInterval) String() string (*MonthDayNanoInterval) Validate() error (*MonthDayNanoInterval) ValidateFull() error *MonthDayNanoInterval : IntervalScalar *MonthDayNanoInterval : PrimitiveScalar *MonthDayNanoInterval : Scalar *MonthDayNanoInterval : TemporalScalar *MonthDayNanoInterval : database/sql/driver.Validator *MonthDayNanoInterval : expvar.Var *MonthDayNanoInterval : fmt.Stringer func NewMonthDayNanoIntervalScalar(val arrow.MonthDayNanoInterval) *MonthDayNanoInterval
scalar.Type arrow.DataType scalar.Valid bool Value arrow.MonthInterval (*MonthInterval) CastTo(to arrow.DataType) (Scalar, error) (*MonthInterval) Data() []byte ( MonthInterval) DataType() arrow.DataType (*MonthInterval) IsValid() bool (*MonthInterval) String() string (*MonthInterval) Validate() error (*MonthInterval) ValidateFull() error *MonthInterval : IntervalScalar *MonthInterval : PrimitiveScalar *MonthInterval : Scalar *MonthInterval : TemporalScalar *MonthInterval : database/sql/driver.Validator *MonthInterval : expvar.Var *MonthInterval : fmt.Stringer func NewMonthIntervalScalar(val arrow.MonthInterval) *MonthInterval
scalar.Type arrow.DataType scalar.Valid bool (*Null) CastTo(dt arrow.DataType) (Scalar, error) ( Null) DataType() arrow.DataType (*Null) IsValid() bool (*Null) String() string (*Null) Validate() (err error) (*Null) ValidateFull() error *Null : Scalar *Null : database/sql/driver.Validator *Null : expvar.Var *Null : fmt.Stringer var ScalarNull *Null
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. ( PrimitiveScalar) Data() []byte The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( PrimitiveScalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Binary BinaryScalar (interface) *Boolean *Date32 *Date64 *DayTimeInterval *Decimal128 *Decimal256 *Dictionary *Duration *FixedSizeBinary *Float16 *Float32 *Float64 *Int16 *Int32 *Int64 *Int8 LargeBinary LargeString *MonthDayNanoInterval *MonthInterval *String *Time32 *Time64 *Timestamp *Uint16 *Uint32 *Uint64 *Uint8 PrimitiveScalar : Scalar PrimitiveScalar : database/sql/driver.Validator PrimitiveScalar : expvar.Var PrimitiveScalar : fmt.Stringer func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.UnboxScalar[T](val PrimitiveScalar) T
( Releasable) Release() ( Releasable) Retain() *Binary BinaryScalar (interface) *DenseUnion *Dictionary FixedSizeBinary FixedSizeList LargeBinary LargeList LargeString *List ListScalar (interface) Map *SparseUnion String github.com/apache/arrow-go/v18/arrow.Array[T] (interface) github.com/apache/arrow-go/v18/arrow.ArrayData (interface) *github.com/apache/arrow-go/v18/arrow.Chunked *github.com/apache/arrow-go/v18/arrow.Column github.com/apache/arrow-go/v18/arrow.RecordBatch (interface) github.com/apache/arrow-go/v18/arrow.Table (interface) github.com/apache/arrow-go/v18/arrow.TypedArray[...] (interface) *github.com/apache/arrow-go/v18/arrow/array.Binary *github.com/apache/arrow-go/v18/arrow/array.BinaryBuilder *github.com/apache/arrow-go/v18/arrow/array.BinaryDictionaryBuilder github.com/apache/arrow-go/v18/arrow/array.BinaryLike (interface) github.com/apache/arrow-go/v18/arrow/array.BinaryLikeBuilder (interface) *github.com/apache/arrow-go/v18/arrow/array.BinaryView *github.com/apache/arrow-go/v18/arrow/array.BinaryViewBuilder *github.com/apache/arrow-go/v18/arrow/array.Boolean *github.com/apache/arrow-go/v18/arrow/array.BooleanBuilder github.com/apache/arrow-go/v18/arrow/array.Builder (interface) *github.com/apache/arrow-go/v18/arrow/array.Data *github.com/apache/arrow-go/v18/arrow/array.Date32 *github.com/apache/arrow-go/v18/arrow/array.Date32Builder *github.com/apache/arrow-go/v18/arrow/array.Date64 *github.com/apache/arrow-go/v18/arrow/array.Date64Builder *github.com/apache/arrow-go/v18/arrow/array.DayTimeInterval *github.com/apache/arrow-go/v18/arrow/array.DayTimeIntervalBuilder github.com/apache/arrow-go/v18/arrow/array.Decimal128Builder github.com/apache/arrow-go/v18/arrow/array.Decimal256Builder *github.com/apache/arrow-go/v18/arrow/array.DenseUnion *github.com/apache/arrow-go/v18/arrow/array.DenseUnionBuilder *github.com/apache/arrow-go/v18/arrow/array.Dictionary github.com/apache/arrow-go/v18/arrow/array.DictionaryBuilder (interface) *github.com/apache/arrow-go/v18/arrow/array.Duration *github.com/apache/arrow-go/v18/arrow/array.DurationBuilder github.com/apache/arrow-go/v18/arrow/array.ExtensionArray (interface) *github.com/apache/arrow-go/v18/arrow/array.ExtensionArrayBase github.com/apache/arrow-go/v18/arrow/array.ExtensionBuilder *github.com/apache/arrow-go/v18/arrow/array.FixedSizeBinary *github.com/apache/arrow-go/v18/arrow/array.FixedSizeBinaryBuilder *github.com/apache/arrow-go/v18/arrow/array.FixedSizeBinaryDictionaryBuilder *github.com/apache/arrow-go/v18/arrow/array.FixedSizeList *github.com/apache/arrow-go/v18/arrow/array.FixedSizeListBuilder *github.com/apache/arrow-go/v18/arrow/array.Float16 *github.com/apache/arrow-go/v18/arrow/array.Float16Builder *github.com/apache/arrow-go/v18/arrow/array.Float32 *github.com/apache/arrow-go/v18/arrow/array.Float32Builder *github.com/apache/arrow-go/v18/arrow/array.Float64 *github.com/apache/arrow-go/v18/arrow/array.Float64Builder github.com/apache/arrow-go/v18/arrow/array.IndexBuilder *github.com/apache/arrow-go/v18/arrow/array.Int16 *github.com/apache/arrow-go/v18/arrow/array.Int16Builder *github.com/apache/arrow-go/v18/arrow/array.Int32 *github.com/apache/arrow-go/v18/arrow/array.Int32Builder *github.com/apache/arrow-go/v18/arrow/array.Int64 *github.com/apache/arrow-go/v18/arrow/array.Int64Builder *github.com/apache/arrow-go/v18/arrow/array.Int8 *github.com/apache/arrow-go/v18/arrow/array.Int8Builder *github.com/apache/arrow-go/v18/arrow/array.JSONReader *github.com/apache/arrow-go/v18/arrow/array.LargeBinary *github.com/apache/arrow-go/v18/arrow/array.LargeList *github.com/apache/arrow-go/v18/arrow/array.LargeListBuilder *github.com/apache/arrow-go/v18/arrow/array.LargeListView *github.com/apache/arrow-go/v18/arrow/array.LargeListViewBuilder *github.com/apache/arrow-go/v18/arrow/array.LargeString github.com/apache/arrow-go/v18/arrow/array.LargeStringBuilder *github.com/apache/arrow-go/v18/arrow/array.List *github.com/apache/arrow-go/v18/arrow/array.ListBuilder github.com/apache/arrow-go/v18/arrow/array.ListLike (interface) github.com/apache/arrow-go/v18/arrow/array.ListLikeBuilder (interface) *github.com/apache/arrow-go/v18/arrow/array.ListView *github.com/apache/arrow-go/v18/arrow/array.ListViewBuilder *github.com/apache/arrow-go/v18/arrow/array.Map *github.com/apache/arrow-go/v18/arrow/array.MapBuilder *github.com/apache/arrow-go/v18/arrow/array.MonthDayNanoInterval *github.com/apache/arrow-go/v18/arrow/array.MonthDayNanoIntervalBuilder *github.com/apache/arrow-go/v18/arrow/array.MonthInterval *github.com/apache/arrow-go/v18/arrow/array.MonthIntervalBuilder *github.com/apache/arrow-go/v18/arrow/array.Null *github.com/apache/arrow-go/v18/arrow/array.NullBuilder *github.com/apache/arrow-go/v18/arrow/array.NullDictionaryBuilder *github.com/apache/arrow-go/v18/arrow/array.RecordBuilder github.com/apache/arrow-go/v18/arrow/array.RecordReader (interface) *github.com/apache/arrow-go/v18/arrow/array.RunEndEncoded *github.com/apache/arrow-go/v18/arrow/array.RunEndEncodedBuilder *github.com/apache/arrow-go/v18/arrow/array.SparseUnion github.com/apache/arrow-go/v18/arrow/array.SparseUnionBuilder *github.com/apache/arrow-go/v18/arrow/array.String github.com/apache/arrow-go/v18/arrow/array.StringBuilder github.com/apache/arrow-go/v18/arrow/array.StringLike (interface) github.com/apache/arrow-go/v18/arrow/array.StringLikeBuilder (interface) *github.com/apache/arrow-go/v18/arrow/array.StringView github.com/apache/arrow-go/v18/arrow/array.StringViewBuilder *github.com/apache/arrow-go/v18/arrow/array.Struct *github.com/apache/arrow-go/v18/arrow/array.StructBuilder *github.com/apache/arrow-go/v18/arrow/array.TableReader *github.com/apache/arrow-go/v18/arrow/array.Time32 *github.com/apache/arrow-go/v18/arrow/array.Time32Builder *github.com/apache/arrow-go/v18/arrow/array.Time64 *github.com/apache/arrow-go/v18/arrow/array.Time64Builder *github.com/apache/arrow-go/v18/arrow/array.Timestamp *github.com/apache/arrow-go/v18/arrow/array.TimestampBuilder *github.com/apache/arrow-go/v18/arrow/array.Uint16 *github.com/apache/arrow-go/v18/arrow/array.Uint16Builder *github.com/apache/arrow-go/v18/arrow/array.Uint32 *github.com/apache/arrow-go/v18/arrow/array.Uint32Builder *github.com/apache/arrow-go/v18/arrow/array.Uint64 *github.com/apache/arrow-go/v18/arrow/array.Uint64Builder *github.com/apache/arrow-go/v18/arrow/array.Uint8 *github.com/apache/arrow-go/v18/arrow/array.Uint8Builder github.com/apache/arrow-go/v18/arrow/array.Union (interface) github.com/apache/arrow-go/v18/arrow/array.UnionBuilder (interface) github.com/apache/arrow-go/v18/arrow/array.VarLenListLike (interface) github.com/apache/arrow-go/v18/arrow/array.VarLenListLikeBuilder (interface) github.com/apache/arrow-go/v18/arrow/array.ViewLike (interface) *github.com/apache/arrow-go/v18/arrow/extensions.Bool8Array github.com/apache/arrow-go/v18/arrow/extensions.Bool8Builder *github.com/apache/arrow-go/v18/arrow/extensions.JSONArray *github.com/apache/arrow-go/v18/arrow/extensions.OpaqueArray *github.com/apache/arrow-go/v18/arrow/extensions.UUIDArray github.com/apache/arrow-go/v18/arrow/extensions.UUIDBuilder *github.com/apache/arrow-go/v18/arrow/extensions.VariantArray github.com/apache/arrow-go/v18/arrow/extensions.VariantBuilder *github.com/apache/arrow-go/v18/arrow/ipc.Message github.com/apache/arrow-go/v18/arrow/ipc.MessageReader (interface) *github.com/apache/arrow-go/v18/arrow/ipc.Reader *github.com/apache/arrow-go/v18/arrow/memory.Buffer github.com/apache/arrow-go/v18/internal/hashing.BinaryBuilderIFace (interface) *github.com/apache/arrow-go/v18/internal/hashing.BinaryMemoTable github.com/polarsignals/frostdb/internal/records.Record github.com/polarsignals/frostdb/parts.Part (interface) github.com/polarsignals/frostdb/pqarrow/arrowutils.VirtualNullArray github.com/polarsignals/frostdb/pqarrow/builder.ColumnBuilder (interface) *github.com/polarsignals/frostdb/pqarrow/builder.ListBuilder *github.com/polarsignals/frostdb/pqarrow/builder.OptBinaryBuilder *github.com/polarsignals/frostdb/pqarrow/builder.OptBooleanBuilder *github.com/polarsignals/frostdb/pqarrow/builder.OptFloat64Builder *github.com/polarsignals/frostdb/pqarrow/builder.OptInt32Builder *github.com/polarsignals/frostdb/pqarrow/builder.OptInt64Builder github.com/polarsignals/frostdb/pqarrow/builder.OptimizedBuilder (interface) *github.com/polarsignals/frostdb/pqarrow/builder.RecordBuilder
scalar.Type arrow.DataType scalar.Valid bool Value Scalar (*RunEndEncoded) CastTo(to arrow.DataType) (Scalar, error) ( RunEndEncoded) DataType() arrow.DataType (*RunEndEncoded) IsValid() bool (*RunEndEncoded) Release() (*RunEndEncoded) String() string (*RunEndEncoded) Validate() (err error) (*RunEndEncoded) ValidateFull() error *RunEndEncoded : Scalar *RunEndEncoded : database/sql/driver.Validator *RunEndEncoded : expvar.Var *RunEndEncoded : fmt.Stringer func NewRunEndEncodedScalar(v Scalar, dt *arrow.RunEndEncodedType) *RunEndEncoded
Scalar represents a single value of a specific DataType as opposed to an array. Scalars are useful for passing single value inputs to compute functions (not yet implemented) or for representing individual array elements, (with a non-trivial cost though). Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( Scalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Binary BinaryScalar (interface) *Boolean *Date32 *Date64 DateScalar (interface) *DayTimeInterval *Decimal128 *Decimal256 *DenseUnion *Dictionary *Duration *Extension *FixedSizeBinary *FixedSizeList *Float16 *Float32 *Float64 *Int16 *Int32 *Int64 *Int8 IntervalScalar (interface) LargeBinary LargeList LargeString *List ListScalar (interface) Map *MonthDayNanoInterval *MonthInterval *Null PrimitiveScalar (interface) *RunEndEncoded *SparseUnion *String *Struct TemporalScalar (interface) *Time32 *Time64 TimeScalar (interface) *Timestamp *Uint16 *Uint32 *Uint64 *Uint8 Union (interface) Scalar : database/sql/driver.Validator Scalar : expvar.Var Scalar : fmt.Stringer func GetScalar(arr arrow.Array, idx int) (Scalar, error) func MakeIntegerScalar(v int64, bitsize int) (Scalar, error) func MakeNullScalar(dt arrow.DataType) Scalar func MakeScalar(val interface{}) Scalar func MakeScalarParam(val interface{}, dt arrow.DataType) (Scalar, error) func MakeUnsignedIntegerScalar(v uint64, bitsize int) (Scalar, error) func ParseScalar(dt arrow.DataType, val string) (Scalar, error) func ToScalar(val interface{}, mem memory.Allocator) (Scalar, error) func (*Binary).CastTo(to arrow.DataType) (Scalar, error) func BinaryScalar.CastTo(arrow.DataType) (Scalar, error) func (*Boolean).CastTo(dt arrow.DataType) (Scalar, error) func (*Date32).CastTo(to arrow.DataType) (Scalar, error) func (*Date64).CastTo(to arrow.DataType) (Scalar, error) func DateScalar.CastTo(arrow.DataType) (Scalar, error) func (*DayTimeInterval).CastTo(to arrow.DataType) (Scalar, error) func (*Decimal128).CastTo(to arrow.DataType) (Scalar, error) func (*Decimal256).CastTo(to arrow.DataType) (Scalar, error) func (*DenseUnion).CastTo(to arrow.DataType) (Scalar, error) func (*DenseUnion).ChildValue() Scalar func (*Dictionary).CastTo(arrow.DataType) (Scalar, error) func (*Dictionary).GetEncodedValue() (Scalar, error) func (*Duration).CastTo(to arrow.DataType) (Scalar, error) func (*Extension).CastTo(to arrow.DataType) (Scalar, error) func (*Float16).CastTo(to arrow.DataType) (Scalar, error) func (*Float32).CastTo(dt arrow.DataType) (Scalar, error) func (*Float64).CastTo(dt arrow.DataType) (Scalar, error) func (*Int16).CastTo(dt arrow.DataType) (Scalar, error) func (*Int32).CastTo(dt arrow.DataType) (Scalar, error) func (*Int64).CastTo(dt arrow.DataType) (Scalar, error) func (*Int8).CastTo(dt arrow.DataType) (Scalar, error) func IntervalScalar.CastTo(arrow.DataType) (Scalar, error) func (*List).CastTo(to arrow.DataType) (Scalar, error) func ListScalar.CastTo(arrow.DataType) (Scalar, error) func (*MonthDayNanoInterval).CastTo(to arrow.DataType) (Scalar, error) func (*MonthInterval).CastTo(to arrow.DataType) (Scalar, error) func (*Null).CastTo(dt arrow.DataType) (Scalar, error) func PrimitiveScalar.CastTo(arrow.DataType) (Scalar, error) func (*RunEndEncoded).CastTo(to arrow.DataType) (Scalar, error) func Scalar.CastTo(arrow.DataType) (Scalar, error) func (*SparseUnion).CastTo(to arrow.DataType) (Scalar, error) func (*SparseUnion).ChildValue() Scalar func (*String).CastTo(to arrow.DataType) (Scalar, error) func (*Struct).CastTo(to arrow.DataType) (Scalar, error) func (*Struct).Field(name string) (Scalar, error) func TemporalScalar.CastTo(arrow.DataType) (Scalar, error) func (*Time32).CastTo(to arrow.DataType) (Scalar, error) func (*Time64).CastTo(to arrow.DataType) (Scalar, error) func TimeScalar.CastTo(arrow.DataType) (Scalar, error) func (*Timestamp).CastTo(to arrow.DataType) (Scalar, error) func TypeToScalar.ToScalar() (Scalar, error) func (*Uint16).CastTo(dt arrow.DataType) (Scalar, error) func (*Uint32).CastTo(dt arrow.DataType) (Scalar, error) func (*Uint64).CastTo(dt arrow.DataType) (Scalar, error) func (*Uint8).CastTo(dt arrow.DataType) (Scalar, error) func Union.CastTo(arrow.DataType) (Scalar, error) func Union.ChildValue() Scalar func github.com/apache/arrow-go/v18/arrow/compute.(*ArrayDatum).ToScalar() (Scalar, error) func github.com/apache/arrow-go/v18/arrow/compute.(*ScalarDatum).ToScalar() (Scalar, error) func Append(bldr array.Builder, s Scalar) error func AppendSlice(bldr array.Builder, scalars []Scalar) error func ApproxEquals(left, right Scalar, opts ...EqualOption) bool func Equals(left, right Scalar) bool func Hash(seed maphash.Seed, s Scalar) uint64 func MakeArrayFromScalar(sc Scalar, length int, mem memory.Allocator) (arrow.Array, error) func NewDenseUnionScalar(v Scalar, code arrow.UnionTypeCode, dt *arrow.DenseUnionType) *DenseUnion func NewDictScalar(index Scalar, dict arrow.Array) *Dictionary func NewExtensionScalar(storage Scalar, typ arrow.DataType) *Extension func NewRunEndEncodedScalar(v Scalar, dt *arrow.RunEndEncodedType) *RunEndEncoded func NewSparseUnionScalar(val []Scalar, code arrow.UnionTypeCode, dt *arrow.SparseUnionType) *SparseUnion func NewSparseUnionScalarFromValue(val Scalar, idx int, dt *arrow.SparseUnionType) *SparseUnion func NewStructScalar(val []Scalar, typ arrow.DataType) *Struct func NewStructScalarWithNames(val []Scalar, names []string) (*Struct, error) func github.com/apache/arrow-go/v18/arrow/compute/exec.(*ArraySpan).FillFromScalar(val Scalar) func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.AndNotOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.AndNotOpKernel.CallScalarRight(ctx *exec.KernelCtx, left *exec.ArraySpan, right Scalar, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.AndOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.KleeneAndNotOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.KleeneAndNotOpKernel.CallScalarRight(ctx *exec.KernelCtx, left *exec.ArraySpan, right Scalar, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.KleeneAndOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.KleeneOrOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.OrOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.SimpleBinaryKernel.CallScalarLeft(*exec.KernelCtx, Scalar, *exec.ArraySpan, *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.SimpleBinaryKernel.CallScalarRight(*exec.KernelCtx, *exec.ArraySpan, Scalar, *exec.ExecResult) error func github.com/apache/arrow-go/v18/arrow/compute/internal/kernels.XorOpKernel.CallScalarLeft(ctx *exec.KernelCtx, left Scalar, right *exec.ArraySpan, out *exec.ExecResult) error func github.com/polarsignals/frostdb/pqarrow.ArrowScalarToParquetValue(sc Scalar) (parquet.Value, error) func github.com/polarsignals/frostdb/query/logicalplan.ValidateComparingTypes(columnType *format.LogicalType, literal Scalar) *logicalplan.ExprValidationError func github.com/polarsignals/frostdb/query/physicalplan.ArrayScalarCompute(funcName string, left arrow.Array, right Scalar) (*physicalplan.Bitmap, error) func github.com/polarsignals/frostdb/query/physicalplan.ArrayScalarContains(arr arrow.Array, right Scalar, not bool) (*physicalplan.Bitmap, error) func github.com/polarsignals/frostdb/query/physicalplan.BinaryScalarOperation(left arrow.Array, right Scalar, operator logicalplan.Op) (*physicalplan.Bitmap, error) func github.com/polarsignals/frostdb/query/physicalplan.DictionaryArrayScalarContains(left *array.Dictionary, right Scalar, not bool) (*physicalplan.Bitmap, error) func github.com/polarsignals/frostdb/query/physicalplan.DictionaryArrayScalarEqual(left *array.Dictionary, right Scalar) (*physicalplan.Bitmap, error) func github.com/polarsignals/frostdb/query/physicalplan.DictionaryArrayScalarNotEqual(left *array.Dictionary, right Scalar) (*physicalplan.Bitmap, error)
ChildID int scalar.Type arrow.DataType scalar.Valid bool TypeCode arrow.UnionTypeCode Value []Scalar (*SparseUnion) CastTo(to arrow.DataType) (Scalar, error) (*SparseUnion) ChildValue() Scalar ( SparseUnion) DataType() arrow.DataType (*SparseUnion) IsValid() bool (*SparseUnion) Release() (*SparseUnion) Retain() (*SparseUnion) String() string (*SparseUnion) Validate() (err error) (*SparseUnion) ValidateFull() (err error) *SparseUnion : Releasable *SparseUnion : Scalar *SparseUnion : Union *SparseUnion : database/sql/driver.Validator *SparseUnion : expvar.Var *SparseUnion : fmt.Stringer func NewSparseUnionScalar(val []Scalar, code arrow.UnionTypeCode, dt *arrow.SparseUnionType) *SparseUnion func NewSparseUnionScalarFromValue(val Scalar, idx int, dt *arrow.SparseUnionType) *SparseUnion
Binary *Binary Binary.scalar.Type arrow.DataType Binary.scalar.Valid bool Binary.Value *memory.Buffer ( String) Buffer() *memory.Buffer (*String) CastTo(to arrow.DataType) (Scalar, error) ( String) Data() []byte ( String) DataType() arrow.DataType ( String) IsValid() bool ( String) Release() ( String) Retain() ( String) String() string (*String) Validate() error (*String) ValidateFull() (err error) *String : BinaryScalar *String : PrimitiveScalar String : Releasable *String : Scalar String : database/sql/driver.Validator String : expvar.Var String : fmt.Stringer func NewStringScalar(val string) *String func NewStringScalarFromBuffer(val *memory.Buffer) *String
scalar.Type arrow.DataType scalar.Valid bool Value Vector (*Struct) CastTo(to arrow.DataType) (Scalar, error) ( Struct) DataType() arrow.DataType (*Struct) Field(name string) (Scalar, error) (*Struct) IsValid() bool (*Struct) Release() (*Struct) String() string (*Struct) Validate() (err error) (*Struct) ValidateFull() (err error) *Struct : Scalar *Struct : database/sql/driver.Validator *Struct : expvar.Var *Struct : fmt.Stringer func NewStructScalar(val []Scalar, typ arrow.DataType) *Struct func NewStructScalarWithNames(val []Scalar, names []string) (*Struct, error) func FromScalar(sc *Struct, val interface{}) error func TypeFromScalar.FromStructScalar(*Struct) error func github.com/apache/arrow-go/v18/arrow/compute.(*SetLookupOptions).FromStructScalar(sc *Struct) error
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( TemporalScalar) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Date32 *Date64 DateScalar (interface) *DayTimeInterval *Duration IntervalScalar (interface) *MonthDayNanoInterval *MonthInterval *Time32 *Time64 TimeScalar (interface) *Timestamp TemporalScalar : Scalar TemporalScalar : database/sql/driver.Validator TemporalScalar : expvar.Var TemporalScalar : fmt.Stringer
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Time32 (*Time32) CastTo(to arrow.DataType) (Scalar, error) (*Time32) Data() []byte ( Time32) DataType() arrow.DataType (*Time32) IsValid() bool (*Time32) String() string (*Time32) ToTime() time.Time (*Time32) Unit() arrow.TimeUnit (*Time32) Validate() error (*Time32) ValidateFull() error *Time32 : PrimitiveScalar *Time32 : Scalar *Time32 : TemporalScalar *Time32 : TimeScalar *Time32 : database/sql/driver.Validator *Time32 : expvar.Var *Time32 : fmt.Stringer func NewTime32Scalar(val arrow.Time32, typ arrow.DataType) *Time32
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Time64 (*Time64) CastTo(to arrow.DataType) (Scalar, error) (*Time64) Data() []byte ( Time64) DataType() arrow.DataType (*Time64) IsValid() bool (*Time64) String() string (*Time64) ToTime() time.Time (*Time64) Unit() arrow.TimeUnit (*Time64) Validate() error (*Time64) ValidateFull() error *Time64 : PrimitiveScalar *Time64 : Scalar *Time64 : TemporalScalar *Time64 : TimeScalar *Time64 : database/sql/driver.Validator *Time64 : expvar.Var *Time64 : fmt.Stringer func NewTime64Scalar(val arrow.Time64, typ arrow.DataType) *Time64
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( TimeScalar) String() string ( TimeScalar) ToTime() time.Time ( TimeScalar) Unit() arrow.TimeUnit Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *Time32 *Time64 *Timestamp TimeScalar : Scalar TimeScalar : TemporalScalar TimeScalar : database/sql/driver.Validator TimeScalar : expvar.Var TimeScalar : fmt.Stringer
scalar.Type arrow.DataType scalar.Valid bool Value arrow.Timestamp (*Timestamp) CastTo(to arrow.DataType) (Scalar, error) (*Timestamp) Data() []byte ( Timestamp) DataType() arrow.DataType (*Timestamp) IsValid() bool (*Timestamp) String() string (*Timestamp) ToTime() time.Time (*Timestamp) Unit() arrow.TimeUnit (*Timestamp) Validate() error (*Timestamp) ValidateFull() error *Timestamp : PrimitiveScalar *Timestamp : Scalar *Timestamp : TemporalScalar *Timestamp : TimeScalar *Timestamp : database/sql/driver.Validator *Timestamp : expvar.Var *Timestamp : fmt.Stringer func NewTimestampScalar(val arrow.Timestamp, typ arrow.DataType) *Timestamp
( TypeFromScalar) FromStructScalar(*Struct) error *github.com/apache/arrow-go/v18/arrow/compute.SetLookupOptions
( TypeToScalar) ToScalar() (Scalar, error) *github.com/apache/arrow-go/v18/arrow/compute.ArrayDatum *github.com/apache/arrow-go/v18/arrow/compute.ScalarDatum
scalar.Type arrow.DataType scalar.Valid bool Value uint16 (*Uint16) CastTo(dt arrow.DataType) (Scalar, error) (*Uint16) Data() []byte ( Uint16) DataType() arrow.DataType (*Uint16) IsValid() bool (*Uint16) String() string (*Uint16) Validate() error (*Uint16) ValidateFull() error *Uint16 : PrimitiveScalar *Uint16 : Scalar *Uint16 : database/sql/driver.Validator *Uint16 : expvar.Var *Uint16 : fmt.Stringer func NewUint16Scalar(val uint16) *Uint16
scalar.Type arrow.DataType scalar.Valid bool Value uint32 (*Uint32) CastTo(dt arrow.DataType) (Scalar, error) (*Uint32) Data() []byte ( Uint32) DataType() arrow.DataType (*Uint32) IsValid() bool (*Uint32) String() string (*Uint32) Validate() error (*Uint32) ValidateFull() error *Uint32 : PrimitiveScalar *Uint32 : Scalar *Uint32 : database/sql/driver.Validator *Uint32 : expvar.Var *Uint32 : fmt.Stringer func NewUint32Scalar(val uint32) *Uint32
scalar.Type arrow.DataType scalar.Valid bool Value uint64 (*Uint64) CastTo(dt arrow.DataType) (Scalar, error) (*Uint64) Data() []byte ( Uint64) DataType() arrow.DataType (*Uint64) IsValid() bool (*Uint64) String() string (*Uint64) Validate() error (*Uint64) ValidateFull() error *Uint64 : PrimitiveScalar *Uint64 : Scalar *Uint64 : database/sql/driver.Validator *Uint64 : expvar.Var *Uint64 : fmt.Stringer func NewUint64Scalar(val uint64) *Uint64
scalar.Type arrow.DataType scalar.Valid bool Value uint8 (*Uint8) CastTo(dt arrow.DataType) (Scalar, error) (*Uint8) Data() []byte ( Uint8) DataType() arrow.DataType (*Uint8) IsValid() bool (*Uint8) String() string (*Uint8) Validate() error (*Uint8) ValidateFull() error *Uint8 : PrimitiveScalar *Uint8 : Scalar *Uint8 : database/sql/driver.Validator *Uint8 : expvar.Var *Uint8 : fmt.Stringer func NewUint8Scalar(val uint8) *Uint8
Cast the value to the desired DataType (returns an error if unable to do so) should take semantics into account and modify the value accordingly. ( Union) ChildValue() Scalar The datatype of the value in this scalar IsValid returns true if the value is non-null, otherwise false. ( Union) Release() ( Union) String() string Performs cheap validation checks, returns nil if successful Perform more expensive validation checks, returns nil if successful *DenseUnion *SparseUnion Union : Scalar Union : database/sql/driver.Validator Union : expvar.Var Union : fmt.Stringer
type Vector ([])
Package-Level Functions (total 65)
Append requires the passed in builder and scalar to have the same datatype otherwise it will return an error. Will return arrow.ErrNotImplemented if the type hasn't been implemented for this. NOTE only available in go1.18+
AppendSlice requires the passed in builder and all scalars in the slice to have the same datatype otherwise it will return an error. Will return arrow.ErrNotImplemented if the type hasn't been implemented for this. NOTE only available in go1.18+
func ApproxEquals(left, right Scalar, opts ...EqualOption) bool
Equals returns true if two scalars are equal, which means they have the same datatype, validity and value.
func FromScalar(sc *Struct, val interface{}) error
GetScalar creates a scalar object from the value at a given index in the passed in array, returns an error if unable to do so.
func Hash(seed maphash.Seed, s Scalar) uint64
MakeArrayFromScalar returns an array filled with the scalar value repeated length times. Not yet implemented for nested types such as Struct, List, extension and so on.
MakeArrayOfNull creates an array of size length which is all null of the given data type. Deprecated: Use array.MakeArrayOfNull
MakeIntegerScalar is a helper function for creating an integer scalar of a given bitsize.
MakeNullScalar creates a scalar value of the desired type representing a null value
MakeScalar creates a scalar of the passed in type via reflection.
MakeScalarParam is for converting a value to a scalar when it requires a parameterized data type such as a time type that needs units, or a fixed size list which needs it's size. Will fall back to MakeScalar without the passed in type if not one of the parameterized types.
MakeUnsignedIntegerScalar is a helper function for creating an unsigned int scalar of the specified bit width.
func NewInt8Scalar(val int8) *Int8
ParseScalar parses a string to create a scalar of the passed in type. Currently does not support any nested types such as Structs or Lists.
func ToScalar(val interface{}, mem memory.Allocator) (Scalar, error)
WithAbsTolerance configures the comparison functions so that 2 floating point values v1 and v2 are considered equal if |v1-v2| <= atol.
WithNaNsEqual configures the comparison functions so that NaNs are considered equal.
Package-Level Variables (only one)