public class FunctionCatalog extends Object
Constructor and Description |
---|
FunctionCatalog() |
Modifier and Type | Method and Description |
---|---|
static scala.collection.immutable.Map<String,Class<?>> |
builtInFunctions() |
void |
clear()
Drop all registered functions.
|
boolean |
dropFunction(String name)
Drop a function and return if the function existed.
|
org.apache.calcite.sql.SqlOperatorTable |
getSqlOperatorTable() |
Expression |
lookupFunction(String name,
scala.collection.Seq<Expression> children)
Lookup and create an expression if we find a match.
|
void |
registerFunction(String name,
Class<?> builder) |
void |
registerSqlFunction(org.apache.calcite.sql.SqlFunction sqlFunction) |
void |
registerSqlFunctions(scala.collection.Seq<org.apache.calcite.sql.SqlFunction> functions)
Register multiple SQL functions at the same time.
|
static FunctionCatalog |
withBuiltIns()
Create a new function catalog with built-in functions.
|
public static FunctionCatalog withBuiltIns()
public void registerSqlFunction(org.apache.calcite.sql.SqlFunction sqlFunction)
public void registerSqlFunctions(scala.collection.Seq<org.apache.calcite.sql.SqlFunction> functions)
public org.apache.calcite.sql.SqlOperatorTable getSqlOperatorTable()
public Expression lookupFunction(String name, scala.collection.Seq<Expression> children)
public boolean dropFunction(String name)
public void clear()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.