transform

package
v0.0.0-...-9741fed Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 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