arrow3

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

arrow3

Build apache arrow records from protocol buffers

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMxDepth = errors.New("max depth reached, either the message is deeply nested or a circular dependency was introduced")

Functions

This section is empty.

Types

type Schema

type Schema[T proto.Message] struct {
	// contains filtered or unexported fields
}

func New

func New[T proto.Message](mem memory.Allocator) (schema *Schema[T], err error)

func (*Schema[T]) Append

func (s *Schema[T]) Append(value T)

Append appends protobuf value to the schema builder.This method is not safe for concurrent use.

func (*Schema[T]) NewRecord

func (s *Schema[T]) NewRecord() arrow.Record

NewRecord returns buffered builder value as an arrow.Record. The builder is reset and can be reused to build new records.

func (*Schema[T]) Parquet

func (s *Schema[T]) Parquet() *schema.Schema

Parquet returns schema as parquet schema

func (*Schema[T]) Proto added in v0.0.2

func (s *Schema[T]) Proto(r arrow.Record, rows []int) []T

Proto decodes rows and returns them as proto messages.

func (*Schema[T]) Read added in v0.0.1

func (s *Schema[T]) Read(ctx context.Context, r parquet.ReaderAtSeeker, columns []int) (arrow.Record, error)

func (*Schema[T]) Release

func (s *Schema[T]) Release()

func (*Schema[T]) Schema

func (s *Schema[T]) Schema() *arrow.Schema

Parquet returns schema as arrow schema

func (*Schema[T]) WriteParquet added in v0.0.1

func (s *Schema[T]) WriteParquet(w io.Writer) error

func (*Schema[T]) WriteParquetRecords added in v0.0.1

func (s *Schema[T]) WriteParquetRecords(w io.Writer, records ...arrow.Record) error

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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