Documentation
¶
Overview ¶
Package exampleutil contains the small local fixtures shared by the runnable examples. It is not part of the public SDK.
Index ¶
- func Create(ctx context.Context, uri string, schema *arrow.Schema, ...) (*lance.Dataset, error)
- func Float32Column(batch arrow.RecordBatch, name string) ([]float32, error)
- func Int64Column(batch arrow.RecordBatch, name string) ([]int64, error)
- func NewReader(schema *arrow.Schema, fill func(*array.RecordBuilder)) (array.RecordReader, error)
- func ScanInt64(ctx context.Context, dataset *lance.Dataset, column string, ...) ([]int64, error)
- func TempURI(prefix string) (string, func(), error)
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.
Types ¶
This section is empty.