virtualcolumn

package
v0.0.4-0...-a9841f4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Long   OutputType = "LONG"
	Float             = "FLOAT"
	Double            = "DOUBLE"
	String            = "STRING"
)

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.VirtualColumn, error)

Types

type Base

type Base struct {
	Typ builder.ComponentType `json:"type,omitempty"`
}

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type Expression

type Expression struct {
	Base
	Name       string `json:"name,omitempty"`
	Expression string `json:"expression,omitempty"`
	OutputType OutputType
}

func NewExpression

func NewExpression() *Expression

func (*Expression) SetExpression

func (e *Expression) SetExpression(expression string) *Expression

func (*Expression) SetName

func (e *Expression) SetName(name string) *Expression

func (*Expression) SetOutputType

func (e *Expression) SetOutputType(outputType OutputType) *Expression

type OutputType

type OutputType string

Jump to

Keyboard shortcuts

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