records

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package records adapts a lazily opened Arrow record stream to a Go iterator.

The adapter owns the stream it opens. A sequence opens its stream when iteration starts and releases it when iteration ends, so an unused sequence holds no native stream and an early break still releases one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sequence

func Sequence(open func() (array.RecordReader, error)) iter.Seq2[arrow.RecordBatch, error]

Sequence returns an iterator over the batches of the stream that open produces. open runs once per iteration, not when Sequence returns, and every iteration owns and releases its own stream.

A stream that open reports is yielded before the first batch. A batch error reported by the stream is yielded after the last batch. Yielded batches belong to the stream until iteration advances, so a caller keeps one by retaining it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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