functions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CountType = "count"

CountType counts number of elements in the vector

View Source
const FetchType = "fetch"

FetchType gets the series from storage

Variables

This section is empty.

Functions

This section is empty.

Types

type CountNode

type CountNode struct {
	// contains filtered or unexported fields
}

CountNode is an execution node

func (*CountNode) Process

func (c *CountNode) Process(ID parser.NodeID, block storage.Block) error

Process the block

type CountOp

type CountOp struct {
}

CountOp stores required properties for count

func (CountOp) Node

func (o CountOp) Node(controller *transform.Controller) transform.OpNode

Node creates an execution node

func (CountOp) OpType

func (o CountOp) OpType() string

OpType for the operator

func (CountOp) String

func (o CountOp) String() string

String representation

type FetchNode

type FetchNode struct {
	// contains filtered or unexported fields
}

FetchNode is the execution node

func (*FetchNode) Execute

func (n *FetchNode) Execute(ctx context.Context) error

Execute runs the fetch node operation

type FetchOp

type FetchOp struct {
	Name     string
	Range    time.Duration
	Offset   time.Duration
	Matchers models.Matchers
}

FetchOp stores required properties for fetch

func (FetchOp) Node

func (o FetchOp) Node(controller *transform.Controller, storage storage.Storage, options transform.Options) parser.Source

Node creates an execution node

func (FetchOp) OpType

func (o FetchOp) OpType() string

OpType for the operator

func (FetchOp) String

func (o FetchOp) String() string

String representation

Jump to

Keyboard shortcuts

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