Documentation ¶
Index ¶
- func AppendToBuilder(bldr array.Builder, s Scalar)
- func AppendToRecordBuilder(bldr *array.RecordBuilder, vector Vector)
- type Binary
- type Bool
- type Date32
- type Date64
- type DayTimeInterval
- type Decimal128
- type Decimal256
- type Duration
- type Float
- type Inet
- type Int
- type JSON
- type LargeBinary
- type LargeString
- type List
- type Mac
- type MonthDayNanoInterval
- type MonthInterval
- type Scalar
- type String
- type Struct
- type Time
- type Timestamp
- type UUID
- type Uint
- type ValidationError
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToBuilder ¶
func AppendToRecordBuilder ¶
func AppendToRecordBuilder(bldr *array.RecordBuilder, vector Vector)
Types ¶
type DayTimeInterval ¶
type DayTimeInterval struct { Value arrow.DayTimeInterval Valid bool }
func (*DayTimeInterval) DataType ¶
func (*DayTimeInterval) DataType() arrow.DataType
func (*DayTimeInterval) Equal ¶
func (s *DayTimeInterval) Equal(rhs Scalar) bool
func (*DayTimeInterval) Get ¶
func (s *DayTimeInterval) Get() any
func (*DayTimeInterval) IsValid ¶
func (s *DayTimeInterval) IsValid() bool
func (*DayTimeInterval) Set ¶
func (s *DayTimeInterval) Set(value any) error
func (*DayTimeInterval) String ¶
func (s *DayTimeInterval) String() string
type Decimal128 ¶
type Decimal128 struct { Valid bool Value decimal128.Num Type *arrow.Decimal128Type // Stores precision and scale }
func (*Decimal128) DataType ¶
func (s *Decimal128) DataType() arrow.DataType
func (*Decimal128) Equal ¶
func (s *Decimal128) Equal(rhs Scalar) bool
func (*Decimal128) Get ¶
func (s *Decimal128) Get() any
func (*Decimal128) IsValid ¶
func (s *Decimal128) IsValid() bool
func (*Decimal128) Set ¶
func (s *Decimal128) Set(val any) error
func (*Decimal128) String ¶
func (s *Decimal128) String() string
type Decimal256 ¶
type Decimal256 struct { Valid bool Value decimal256.Num Type *arrow.Decimal256Type // Stores precision and scale }
func (*Decimal256) DataType ¶
func (s *Decimal256) DataType() arrow.DataType
func (*Decimal256) Equal ¶
func (s *Decimal256) Equal(rhs Scalar) bool
func (*Decimal256) Get ¶
func (s *Decimal256) Get() any
func (*Decimal256) IsValid ¶
func (s *Decimal256) IsValid() bool
func (*Decimal256) Set ¶
func (s *Decimal256) Set(val any) error
func (*Decimal256) String ¶
func (s *Decimal256) String() string
type LargeBinary ¶
type LargeBinary struct {
Binary
}
func (*LargeBinary) DataType ¶
func (*LargeBinary) DataType() arrow.DataType
type LargeString ¶
type LargeString struct {
// contains filtered or unexported fields
}
func (*LargeString) DataType ¶
func (*LargeString) DataType() arrow.DataType
func (*LargeString) Equal ¶
func (s *LargeString) Equal(rhs Scalar) bool
func (*LargeString) Get ¶
func (s *LargeString) Get() any
func (*LargeString) IsValid ¶
func (s *LargeString) IsValid() bool
func (*LargeString) Set ¶
func (s *LargeString) Set(val any) error
func (*LargeString) String ¶
func (s *LargeString) String() string
type Mac ¶
type Mac struct { Valid bool Value net.HardwareAddr }
type MonthDayNanoInterval ¶
type MonthDayNanoInterval struct { Value arrow.MonthDayNanoInterval Valid bool }
func (*MonthDayNanoInterval) DataType ¶
func (*MonthDayNanoInterval) DataType() arrow.DataType
func (*MonthDayNanoInterval) Equal ¶
func (s *MonthDayNanoInterval) Equal(rhs Scalar) bool
func (*MonthDayNanoInterval) Get ¶
func (s *MonthDayNanoInterval) Get() any
func (*MonthDayNanoInterval) IsValid ¶
func (s *MonthDayNanoInterval) IsValid() bool
func (*MonthDayNanoInterval) Set ¶
func (s *MonthDayNanoInterval) Set(value any) error
func (*MonthDayNanoInterval) String ¶
func (s *MonthDayNanoInterval) String() string
type MonthInterval ¶
type MonthInterval struct {
Int
}
func (*MonthInterval) DataType ¶
func (*MonthInterval) DataType() arrow.DataType
func (*MonthInterval) Equal ¶
func (s *MonthInterval) Equal(rhs Scalar) bool
func (*MonthInterval) Set ¶
func (s *MonthInterval) Set(value any) error
func (*MonthInterval) String ¶
func (s *MonthInterval) String() string
type Scalar ¶
type Scalar interface { fmt.Stringer // IsValid returns true if the value is non-null, otherwise false. IsValid() bool // The datatype of the value in this scalar DataType() arrow.DataType // Performs cheap validation checks, returns nil if successful // Validate() error // tries to set the value of the scalar to the given value Set(val any) error Get() any Equal(other Scalar) bool }
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).
type Timestamp ¶
type Timestamp struct { Valid bool Value time.Time Type *arrow.TimestampType }
func (*Timestamp) DecodeText ¶
type ValidationError ¶
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) MaskedError ¶
func (e *ValidationError) MaskedError() string
this prints the error without the value
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.