Help us shape the future of Go! Take the 2026 Go Developer Survey

storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnarDataset

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

ColumnarDataset represents a columnar dataset stored in the Arrow IPC file format.

func NewColumnarDataset

func NewColumnarDataset(rw io.ReadWriteSeeker, schema *arrow.Schema) (*ColumnarDataset, error)

NewColumnarDataset creates a new ColumnarDataset for writing.

func NewColumnarDatasetReader

func NewColumnarDatasetReader(rs ipc.ReadAtSeeker) (*ColumnarDataset, error)

NewColumnarDatasetReader creates a new ColumnarDataset for reading.

func NewColumnarDatasetReaderFromReader

func NewColumnarDatasetReaderFromReader(r io.Reader) (*ColumnarDataset, error)

NewColumnarDatasetReaderFromReader creates a new ColumnarDataset for reading from any io.Reader.

func OpenForReading

func OpenForReading(r ipc.ReadAtSeeker) (*ColumnarDataset, error)

OpenForReading initializes the dataset for reading from an Arrow IPC file.

func OpenForReadingFromPipe

func OpenForReadingFromPipe(r io.Reader) (*ColumnarDataset, error)

OpenForReadingFromPipe initializes the dataset for reading from an Arrow IPC stream.

func (*ColumnarDataset) Chunk

func (cd *ColumnarDataset) Chunk(i int) (arrow.Record, error)

Chunk returns a specific chunk by its index.

func (*ColumnarDataset) Close

func (cd *ColumnarDataset) Close() error

func (*ColumnarDataset) NumChunks

func (cd *ColumnarDataset) NumChunks() int

NumChunks returns the number of chunks in the dataset.

func (*ColumnarDataset) Read

func (cd *ColumnarDataset) Read() (arrow.Record, error)

func (*ColumnarDataset) Schema

func (cd *ColumnarDataset) Schema() *arrow.Schema

Schema returns the schema of the dataset.

func (*ColumnarDataset) Write

func (cd *ColumnarDataset) Write(rec arrow.Record) error

type Writer

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

Writer is an interface for writing Arrow record batches.

func NewWriter

func NewWriter(w io.Writer, schema *arrow.Schema) (Writer, error)

NewWriter creates a new Arrow writer.

Jump to

Keyboard shortcuts

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