Documentation ¶
Index ¶
- func CollectDictionaries(batch arrow.Record, mapper *Mapper) (out []dictpair, err error)
- func ResolveDictionaries(memo *Memo, cols []arrow.ArrayData, parentPos FieldPos, mem memory.Allocator) error
- func ResolveFieldDict(memo *Memo, data arrow.ArrayData, pos FieldPos, mem memory.Allocator) error
- type FieldPos
- type Kind
- type Mapper
- func (d *Mapper) AddField(id int64, fieldPath []int32) error
- func (d *Mapper) GetFieldID(fieldPath []int32) (int64, error)
- func (d *Mapper) ImportField(pos FieldPos, field arrow.Field)
- func (d *Mapper) ImportFields(pos FieldPos, fields []arrow.Field)
- func (d *Mapper) ImportSchema(schema *arrow.Schema)
- func (d *Mapper) InsertPath(pos FieldPos)
- func (d *Mapper) NumDicts() int
- func (d *Mapper) NumFields() int
- type Memo
- func (memo *Memo) Add(id int64, v arrow.ArrayData)
- func (memo *Memo) AddDelta(id int64, v arrow.ArrayData)
- func (memo *Memo) AddOrReplace(id int64, v arrow.ArrayData) bool
- func (memo *Memo) AddType(id int64, typ arrow.DataType) error
- func (memo *Memo) Clear()
- func (memo *Memo) Dict(id int64, mem memory.Allocator) (arrow.ArrayData, error)
- func (memo Memo) HasDict(v arrow.ArrayData) bool
- func (memo Memo) HasID(id int64) bool
- func (memo *Memo) Len() int
- func (memo *Memo) Type(id int64) (arrow.DataType, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectDictionaries ¶
func ResolveDictionaries ¶
Types ¶
type FieldPos ¶
type FieldPos struct {
// contains filtered or unexported fields
}
func NewFieldPos ¶
func NewFieldPos() FieldPos
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
func (*Mapper) ImportSchema ¶
func (*Mapper) InsertPath ¶
type Memo ¶
type Memo struct { Mapper Mapper // contains filtered or unexported fields }
func (*Memo) AddOrReplace ¶
AddOrReplace puts the provided dictionary into the memo table. If it already exists, then the new data will replace it. Otherwise it is added to the memo table.
Click to show internal directories.
Click to hide internal directories.