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.
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 ¶
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
Click to show internal directories.
Click to hide internal directories.