parquet

package
v0.0.0-...-e6616ac Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MysqlToArrowSchema

func MysqlToArrowSchema(db *sql.DB, tableName string) (*arrow.Schema, error)

MysqlToArrowSchema converts a MySQL table schema to an Arrow schema.

Types

type BufferedChunk

type BufferedChunk struct {
	Chunk      *table.Chunk
	Duration   time.Duration
	ActualRows uint64
}

type WriteBuffer

type WriteBuffer struct {
	RowsWritten uint64
	// contains filtered or unexported fields
}

func NewWriteBuffer

func NewWriteBuffer(schema *arrow.Schema, chunker table.Chunker, uploader upload.Uploader, outputFileSize uint64) *WriteBuffer

func (*WriteBuffer) AddChunk

func (wb *WriteBuffer) AddChunk(chunk *table.Chunk, duration time.Duration, actualRows uint64)

func (*WriteBuffer) CheckAndFlushBuffer

func (wb *WriteBuffer) CheckAndFlushBuffer(ctx context.Context) (uint64, error)

func (*WriteBuffer) Flush

func (wb *WriteBuffer) Flush(ctx context.Context) (uint64, error)

func (*WriteBuffer) WriteGenericRowValues

func (wb *WriteBuffer) WriteGenericRowValues(values []interface{}) error

Jump to

Keyboard shortcuts

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