parquet

package
v1.28.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 4

Variables

This section is empty.

Functions

func JSONToArray

func JSONToArray(buffer []byte) ([]model.Dictionary, error)

JSONToArray return a array of model.Dictionary from a jsonline

func JSONToPackedDictionary

func JSONToPackedDictionary(jsonline []byte) (model.Dictionary, error)

JSONToPackedDictionary return a packed model.Dictionary from a jsonline

Types

type Sink

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

func NewSink

func NewSink(file io.Writer, schema *arrow.Schema) (Sink, error)

NewSink creates a new Sink.

func NewSinkWithContext

func NewSinkWithContext(file io.Writer, schema *arrow.Schema, counter string) (Sink, error)

NewSinkWithContext creates a new Sink.

func (Sink) Close

func (s Sink) Close() error

func (Sink) Open

func (s Sink) Open() error

func (Sink) ProcessDictionary

func (s Sink) ProcessDictionary(dictionary model.Entry) error

type Source

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

Source export line to JSON format.

func NewPackedSource

func NewPackedSource(path string) (*Source, error)

NewPackedSource creates a new packed Source.

func NewSource

func NewSource(path string) (*Source, error)

NewSource creates a new Source.

func (*Source) Err

func (s *Source) Err() error

func (*Source) Next

func (s *Source) Next() bool

func (*Source) NextBatch

func (s *Source) NextBatch() bool

NextBatch read next batch in parquet file

func (*Source) Open

func (s *Source) Open() error

func (*Source) Schema

func (s *Source) Schema() (*arrow.Schema, error)

func (*Source) Value

func (s *Source) Value() model.Entry

Jump to

Keyboard shortcuts

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