interfaces

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBatch

type DataBatch struct {
	Data     interface{}       // The actual data, e.g., Arrow Record, byte slice, etc.
	Metadata map[string]string // Metadata associated with the data, key-value pairs
	Error    error             // Error associated with the batch
	Schema   *arrow.Schema     // Schema associated with the data
}

type Reader

type Reader interface {
	Read() (arrow.Record, error)
	Close() error
}

type Sink

type Sink interface {
	Init(ctx context.Context) error
	Write(batch DataBatch) error
	Close() error
}

type Source

type Source interface {
	Init(ctx context.Context) error
	Read() (DataBatch, error)
	Close() error
}

type SourceSink

type SourceSink interface {
	Source
	Sink
}

type Writer

type Writer interface {
	Write(arrow.Record) error
	Close() error
}

Jump to

Keyboard shortcuts

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