exec

package
v1.5.1-0...-4d21ab9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

Command represents the program execution for "store query".

func NewCommand

func NewCommand(deps Dependencies) *Command

NewCommand returns a new instance of Command.

func (*Command) Run

func (cmd *Command) Run(args []string) (err error)

type Dependencies

type Dependencies struct {
	Server server.Interface

	// SeriesGeneratorFilter wraps g with a SeriesGenerator that
	// returns a subset of keys from g
	SeriesGeneratorFilter SeriesGeneratorFilter
}

type Generator

type Generator struct {
	Concurrency int
	BuildTSI    bool
	// contains filtered or unexported fields
}

func (*Generator) Run

func (g *Generator) Run(ctx context.Context, database, shardPath string, groups []meta.ShardGroupInfo, gens []SeriesGenerator) (err error)

type SeriesGenerator

type SeriesGenerator interface {
	// Next advances the series generator to the next series key.
	Next() bool

	// Key returns the series key.
	// The returned value may be cached.
	Key() []byte

	// Name returns the name of the measurement.
	// The returned value may be cached.
	Name() []byte

	// Tags returns the tag set.
	// The returned value may be cached.
	Tags() models.Tags

	// Field returns the name of the field.
	// The returned value may be cached.
	Field() []byte

	// ValuesGenerator returns a values sequence for the current series.
	ValuesGenerator() gen.ValuesSequence
}

func NewSeriesGenerator

func NewSeriesGenerator(name []byte, field []byte, vg gen.ValuesSequence, tags gen.TagsSequence) SeriesGenerator

type SeriesGeneratorFilter

type SeriesGeneratorFilter func(sgi meta.ShardGroupInfo, g SeriesGenerator) SeriesGenerator

Jump to

Keyboard shortcuts

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