cockroach: github.com/cockroachdb/cockroach/pkg/sql/colexec/execgen Index | Files

package execgen

import "github.com/cockroachdb/cockroach/pkg/sql/colexec/execgen"

Index

Package Files

execgen.go inline.go placeholders.go supported_bin_cmp_ops.go template.go util.go

Variables

var BinaryOpName = map[tree.BinaryOperator]string{
    tree.Bitand:       "Bitand",
    tree.Bitor:        "Bitor",
    tree.Bitxor:       "Bitxor",
    tree.Plus:         "Plus",
    tree.Minus:        "Minus",
    tree.Mult:         "Mult",
    tree.Div:          "Div",
    tree.FloorDiv:     "FloorDiv",
    tree.Mod:          "Mod",
    tree.Pow:          "Pow",
    tree.Concat:       "Concat",
    tree.LShift:       "LShift",
    tree.RShift:       "RShift",
    tree.JSONFetchVal: "JSONFetchVal",
}

BinaryOpName is a mapping from all binary operators that are supported by the vectorized engine to their names.

var ComparisonOpName = map[tree.ComparisonOperator]string{
    tree.EQ: "EQ",
    tree.NE: "NE",
    tree.LT: "LT",
    tree.LE: "LE",
    tree.GT: "GT",
    tree.GE: "GE",
}

ComparisonOpName is a mapping from all comparison operators that are supported by the vectorized engine to their names.

func APPENDSLICE Uses

func APPENDSLICE(target, src, destIdx, srcStartIdx, srcEndIdx interface{})

APPENDSLICE is a template function.

func APPENDVAL Uses

func APPENDVAL(target, v interface{})

APPENDVAL is a template function.

func COPYSLICE Uses

func COPYSLICE(target, src, destIdx, srcStartIdx, srcEndIdx interface{})

COPYSLICE is a template function.

func COPYVAL Uses

func COPYVAL(dest, src interface{})

COPYVAL is a template function that can be used to set a scalar to the value of another scalar in such a way that the destination won't be modified if the source is. You must use this on the result of UNSAFEGET if you wish to store that result past the lifetime of the batch you UNSAFEGET'd from.

func Generate Uses

func Generate(inputFileContents string) (string, error)

Generate transforms the string contents of an input execgen template by processing all supported // execgen annotations.

func LEN Uses

func LEN(target interface{}) interface{}

LEN is a template function.

func SET Uses

func SET(target, i, new interface{})

SET is a template function.

func SLICE Uses

func SLICE(target, start, end interface{}) interface{}

SLICE is a template function.

func WINDOW Uses

func WINDOW(target, start, end interface{}) interface{}

WINDOW is a template function.

func ZERO Uses

func ZERO(target interface{})

ZERO is a template function.

Package execgen imports 11 packages (graph). Updated 2020-08-12. Refresh now. Tools for package owners.