Documentation
¶
Index ¶
- func ReadTable(reader io.Reader, mem memory.Allocator, arrayInput bool, columns []string, ...) (arrow.Table, error)
- func ScalarValue(arr arrow.Array, row int) (any, error)
- func TableFromObjects(values []map[string]any, mem memory.Allocator, columns []string, ...) (arrow.Table, error)
- type MissingColumnError
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 ¶
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 ¶
MissingColumnError constructs the caller's public missing-column error.
Click to show internal directories.
Click to hide internal directories.