executor

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package executor defines the specifications accessing underlying data repositories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionContext

type ExecutionContext interface {
	Shards(entity tsdb.Entity) ([]tsdb.Shard, error)
	Shard(id common.ShardID) (tsdb.Shard, error)
	ParseTagFamily(family string, item tsdb.Item) (*modelv1.TagFamily, error)
}

ExecutionContext allows retrieving data from tsdb.

type MIterator

type MIterator interface {
	Next() bool

	Current() []*measurev1.DataPoint

	Close() error
}

MIterator allows iterating in a measure data set.

type MeasureExecutable

type MeasureExecutable interface {
	Execute(MeasureExecutionContext) (MIterator, error)
}

MeasureExecutable allows querying in the measure schema.

type MeasureExecutionContext

type MeasureExecutionContext interface {
	ExecutionContext
	ParseField(name string, item tsdb.Item) (*measurev1.DataPoint_Field, error)
}

MeasureExecutionContext allows retrieving data through the measure module.

type StreamExecutable

type StreamExecutable interface {
	Execute(StreamExecutionContext) ([]*streamv1.Element, error)
}

StreamExecutable allows querying in the stream schema.

type StreamExecutionContext

type StreamExecutionContext interface {
	ExecutionContext
	ParseElementID(item tsdb.Item) (string, error)
}

StreamExecutionContext allows retrieving data through the stream module.

Jump to

Keyboard shortcuts

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