protoarrow

package
v0.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(records []arrow.Record) (arrow.Record, error)

func Schema

func Schema(msg proto.Message, opts ...*SchemaContext) *arrow.Schema

func WritParquetFile

func WritParquetFile(path string, r arrow.Record) error

func WriteParquet

func WriteParquet(w io.Writer, r arrow.Record) error

Types

type Build

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

func New

func New(mem memory.Allocator, a proto.Message) *Build

func (*Build) Append

func (b *Build) Append(v proto.Message)

func (Build) NewRecord

func (b Build) NewRecord() arrow.Record

func (*Build) Release

func (b *Build) Release()

type Field

type Field struct {
	Name  string
	Index int
}

type SchemaContext

type SchemaContext struct {
	Index  int
	Paths  []string
	Fields []Field
}

Jump to

Keyboard shortcuts

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