Documentation ¶
Index ¶
- Constants
- func ConvName(name string) (string, bool)
- func Function(name string) (api.Function, error)
- func GetFuncType(funcName string) ast.FuncType
- func GetFunctionPlugin(name string) (plugin.EXTENSION_TYPE, string, string)
- func HasFunctionSet(name string) bool
- func Initialize(factories []binder.FactoryEntry) error
- func IsAggFunc(funcName string) bool
- func IsAnalyticFunc(name string) bool
- func IsWindowFunc(name string) bool
- func NoAggFunc(funcName string) bool
- func ProduceErrInfo(index int, expect string) (err error)
- func ValidateAtLeast(min, actual int) error
- func ValidateJsonFunc(_ api.FunctionContext, args []ast.Expr) error
- func ValidateLen(exp, actual int) error
- func ValidateNoArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateOneArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateOneNumberArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateOneStrArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateOneStrOneInt(_ api.FunctionContext, args []ast.Expr) error
- func ValidateTwoIntArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateTwoNumberArg(_ api.FunctionContext, args []ast.Expr) error
- func ValidateTwoStrArg(_ api.FunctionContext, args []ast.Expr) error
- type ColFunc
- type IntervalUnit
- type Manager
- type ResultCols
Constants ¶
View Source
const ( RadToDeg = 180 / math.Pi DegToRad = math.Pi / 180 )
View Source
const AnalyticPrefix = "$$a"
Variables ¶
This section is empty.
Functions ¶
func GetFuncType ¶
func GetFunctionPlugin ¶
func GetFunctionPlugin(name string) (plugin.EXTENSION_TYPE, string, string)
func HasFunctionSet ¶
func Initialize ¶
func Initialize(factories []binder.FactoryEntry) error
Initialize Only call once when server starts
func IsAnalyticFunc ¶
func IsWindowFunc ¶
func ProduceErrInfo ¶
ProduceErrInfo Index is starting from 0
func ValidateAtLeast ¶
func ValidateJsonFunc ¶
func ValidateJsonFunc(_ api.FunctionContext, args []ast.Expr) error
func ValidateLen ¶
func ValidateNoArg ¶
func ValidateNoArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateOneArg ¶
func ValidateOneArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateOneNumberArg ¶
func ValidateOneNumberArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateOneStrArg ¶
func ValidateOneStrArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateOneStrOneInt ¶
func ValidateOneStrOneInt(_ api.FunctionContext, args []ast.Expr) error
func ValidateTwoIntArg ¶
func ValidateTwoIntArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateTwoNumberArg ¶
func ValidateTwoNumberArg(_ api.FunctionContext, args []ast.Expr) error
func ValidateTwoStrArg ¶
func ValidateTwoStrArg(_ api.FunctionContext, args []ast.Expr) error
Types ¶
type ColFunc ¶
type ColFunc func(ctx api.FunctionContext, args []interface{}, keys []string) (ResultCols, error)
ColFunc Functions which will return columns directly instead of a map
type IntervalUnit ¶
type IntervalUnit string
type Manager ¶
type Manager struct{}
func GetManager ¶
func GetManager() *Manager
func (*Manager) FunctionPluginInfo ¶
func (*Manager) HasFunctionSet ¶
type ResultCols ¶
type ResultCols map[string]interface{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.