parquet

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

	Package parquetgo is an utility and marshaler with go-friendly error handling for parquet-go.
	https://github.com/xitongsys/parquet-go

	xitongsys/parquet-go provides simple, high-level API to convert to Parquet.
	But provided features are limited (mainly it looks main users select Go struct or JSON ),
    and the error handling is sometimes too simple (panic/recovery based).

	parquetgo package enriches these points for handling Arrow based data.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidParquetSchema = errors.New("invalid parquet schema")
	ErrInvalidParquetRecord = errors.New("invalid parquet record")
	ErrUnsupportedMethod    = errors.New("unsupported method")
)

Functions

func MarshalArrow

func MarshalArrow(maybeRecord []interface{}, bgn int, end int, schemaHandler *schema.SchemaHandler) (*map[string]*layout.Table, error)

MarshalMap converts 1 arrow record to parquet tables.

func MarshalMap

func MarshalMap(sources []interface{}, bgn int, end int, schemaHandler *schema.SchemaHandler) (*map[string]*layout.Table, error)

MarshalMap converts []map[string]interface{} to parquet tables.

func NewStdioFile

func NewStdioFile() *stdioFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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