transform

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockBuilder

type BlockBuilder interface {
	AppendValue(index int, value float64)
	Build() storage.Block
}

BlockBuilder builds a new block

type Controller

type Controller struct {
	ID parser.NodeID
	// contains filtered or unexported fields
}

Controller controls the caching and forwarding the request to downstream.

func (*Controller) AddTransform

func (t *Controller) AddTransform(node OpNode)

AddTransform adds a dependent transformation to the controller

func (*Controller) BlockBuilder

func (t *Controller) BlockBuilder(blockMeta storage.BlockMetadata) (BlockBuilder, error)

BlockBuilder returns a BlockBuilder instance with associated metadata nolint: unparam

func (*Controller) Process

func (t *Controller) Process(block storage.Block) error

Process performs processing on the underlying transforms

type OpNode

type OpNode interface {
	Process(ID parser.NodeID, block storage.Block) error
}

OpNode represents the execution node

type Options

type Options struct {
	Now time.Time
}

Options to create transform nodes

Jump to

Keyboard shortcuts

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