exec

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compact

func Compact(ctx context.Context, lk *lake.Root, pool *lake.Pool, branchName string, objectIDs []ksuid.KSUID, writeVectors bool, author, message, info string) (ksuid.KSUID, error)

Types

type BranchStats

type BranchStats struct {
	Size int64 `zed:"size"`
	// XXX (nibs) - This shouldn't be a span because keys don't have to be time.
	Span *nano.Span `zed:"span"`
}

func GetBranchStats

func GetBranchStats(ctx context.Context, b *lake.Branch, snap commits.View) (info BranchStats, err error)

type DeleteQuery added in v1.13.0

type DeleteQuery struct {
	*Query
	// contains filtered or unexported fields
}

func NewDeleteQuery added in v1.13.0

func NewDeleteQuery(rctx *runtime.Context, puller zbuf.Puller, deletes *sync.Map) *DeleteQuery

func (*DeleteQuery) DeletionSet added in v1.13.0

func (d *DeleteQuery) DeletionSet() []ksuid.KSUID

type PoolStats

type PoolStats struct {
	Size int64 `zed:"size"`
	// XXX (nibs) - This shouldn't be a span because keys don't have to be time.
	Span *nano.Span `zed:"span"`
}

XXX for backward compat keep this for now, and return branchstats for pool/main

func GetPoolStats

func GetPoolStats(ctx context.Context, p *lake.Pool, snap commits.View) (info PoolStats, err error)

type Query added in v1.13.0

type Query struct {
	zbuf.Puller
	// contains filtered or unexported fields
}

Query runs a flowgraph as a zbuf.Puller and implements a Close() method that gracefully tears down the flowgraph. Its AsReader() and AsProgressReader() methods provide a convenient means to run a flowgraph as zio.Reader.

func NewQuery added in v1.13.0

func NewQuery(rctx *runtime.Context, puller zbuf.Puller, meter zbuf.Meter) *Query

func (*Query) AsProgressReadCloser added in v1.13.0

func (q *Query) AsProgressReadCloser() zbuf.ProgressReadCloser

func (*Query) AsReader added in v1.13.0

func (q *Query) AsReader() zio.Reader

func (*Query) Close added in v1.13.0

func (q *Query) Close() error

func (*Query) Meter added in v1.13.0

func (q *Query) Meter() zbuf.Meter

func (*Query) Progress added in v1.13.0

func (q *Query) Progress() zbuf.Progress

func (*Query) Pull added in v1.13.0

func (q *Query) Pull(done bool) (zbuf.Batch, error)

Jump to

Keyboard shortcuts

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