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

batch

package
v4.99.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceRecord

func SliceRecord(r arrow.RecordBatch, limit *Cap) (add *SlicedRecord, flush []arrow.RecordBatch, remaining *SlicedRecord)

SliceRecord will return the SlicedRecord you can add to the batch given the restrictions provided (if any). The meaning of the returned values: - `add` is good to be added to the current batch that the caller is assembling - `flush` represents sliced arrow.Record that needs own batch to be flushed - `remaining` represents the overflow of the batch after `add` & `flush` are processed Note that the `limit` provided will not be updated.

func SplitRecord added in v4.96.4

func SplitRecord(r arrow.RecordBatch, limit *Cap) []arrow.RecordBatch

Types

type Cap

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

func CappedAt

func CappedAt(bytes, rows int64) *Cap

func (*Cap) AddRows

func (c *Cap) AddRows(rows int64)

func (*Cap) AddSlice

func (c *Cap) AddSlice(record *SlicedRecord)

func (*Cap) ReachedLimit

func (c *Cap) ReachedLimit() bool

func (*Cap) Reset

func (c *Cap) Reset()

func (*Cap) Rows

func (c *Cap) Rows() int64

type SlicedRecord

type SlicedRecord struct {
	arrow.RecordBatch
	Bytes int64 // we need this as the util.TotalRecordSize will report the full size even for the sliced record
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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