exampleutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 8 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 exampleutil contains the small local fixtures shared by the runnable examples. It is not part of the public SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, uri string, schema *arrow.Schema, fill func(*array.RecordBuilder)) (*lance.Dataset, error)

Create writes one Arrow batch built by fill to a new dataset. The helper owns the reader; the returned dataset is owned by the caller.

func Float32Column

func Float32Column(batch arrow.RecordBatch, name string) ([]float32, error)

Float32Column returns a copy of a float32 column from batch.

func Int64Column

func Int64Column(batch arrow.RecordBatch, name string) ([]int64, error)

Int64Column returns a copy of an int64 column from batch.

func NewReader

func NewReader(schema *arrow.Schema, fill func(*array.RecordBuilder)) (array.RecordReader, error)

NewReader builds one Arrow batch with fill and returns a reader that owns its reference to the batch. The caller releases the reader.

func ScanInt64

func ScanInt64(ctx context.Context, dataset *lance.Dataset, column string, opts ...lance.ScanOption) ([]int64, error)

ScanInt64 scans one int64 column and returns its values in scan order.

func TempURI

func TempURI(prefix string) (string, func(), error)

TempURI returns a dataset path under a new temporary directory. The caller must call cleanup when it no longer needs the dataset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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