flatten

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flatten provides a RecordReader wrapper that flattens complex Arrow types (Struct, List, Map, Union) to simple columns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter wraps an array.RecordReader and flattens complex types. Implements array.RecordReader.

func NewConverter

func NewConverter(source array.RecordReader) *Converter

NewConverter creates a flattening RecordReader wrapper. If the schema has no complex types, batches pass through unchanged.

func (*Converter) Err

func (c *Converter) Err() error

func (*Converter) Next

func (c *Converter) Next() bool

func (*Converter) Record

func (c *Converter) Record() arrow.RecordBatch

func (*Converter) RecordBatch

func (c *Converter) RecordBatch() arrow.RecordBatch

func (*Converter) Release

func (c *Converter) Release()

func (*Converter) Retain

func (c *Converter) Retain()

func (*Converter) Schema

func (c *Converter) Schema() *arrow.Schema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL