jsonio

package
v0.0.0-...-edd961b Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTable

func ReadTable(reader io.Reader, mem memory.Allocator, arrayInput bool, columns []string, missingColumn MissingColumnError) (arrow.Table, error)

ReadTable decodes newline-delimited JSON or a JSON array of objects into an Arrow table. Projection is applied while constructing the table.

func ScalarValue

func ScalarValue(arr arrow.Array, row int) (any, error)

ScalarValue converts one Arrow value to a JSON-compatible value.

func TableFromObjects

func TableFromObjects(values []map[string]any, mem memory.Allocator, columns []string, missingColumn MissingColumnError) (arrow.Table, error)

TableFromObjects builds an Arrow table from row-oriented Go maps. Missing keys are appended as nulls; columns are sorted unless an explicit order is supplied.

Types

type MissingColumnError

type MissingColumnError func(name string, available []string) error

MissingColumnError constructs the caller's public missing-column error.

Jump to

Keyboard shortcuts

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