Package org.apache.flink.sql.parser.ddl
Class SqlCreateFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlNode
-
- org.apache.calcite.sql.SqlCall
-
- org.apache.calcite.sql.SqlDdl
-
- org.apache.calcite.sql.SqlCreate
-
- org.apache.flink.sql.parser.ddl.SqlCreateObject
-
- org.apache.flink.sql.parser.ddl.SqlCreateFunction
-
- All Implemented Interfaces:
Cloneable
public class SqlCreateFunction extends SqlCreateObject
CREATE FUNCTION DDL sql call.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.sql.parser.ddl.SqlCreateObject
comment, name, properties
-
-
Constructor Summary
Constructors Constructor Description SqlCreateFunction(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier functionIdentifier, org.apache.calcite.sql.SqlCharStringLiteral functionClassName, String functionLanguage, boolean ifNotExists, boolean isTemporary, boolean isSystemFunction, org.apache.calcite.sql.SqlNodeList resourceInfos, org.apache.calcite.sql.SqlNodeList propertyList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlCharStringLiteralgetFunctionClassName()StringgetFunctionLanguage()List<org.apache.calcite.sql.SqlNode>getOperandList()List<org.apache.calcite.sql.SqlNode>getResourceInfos()protected StringgetScope()The scope will be used in unparse.booleanisSystemFunction()voidunparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)protected voidunparseCreateIfNotExists(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)-
Methods inherited from class org.apache.flink.sql.parser.ddl.SqlCreateObject
getComment, getFullName, getName, getProperties, isIfNotExists, isTemporary
-
Methods inherited from class org.apache.calcite.sql.SqlCall
accept, clone, equalsDeep, findValidOptions, getCallSignature, getFunctionQuantifier, getKind, getMonotonicity, isCountStar, isExpanded, operand, operandCount, setOperand, validate
-
-
-
-
Constructor Detail
-
SqlCreateFunction
public SqlCreateFunction(org.apache.calcite.sql.parser.SqlParserPos pos, org.apache.calcite.sql.SqlIdentifier functionIdentifier, org.apache.calcite.sql.SqlCharStringLiteral functionClassName, String functionLanguage, boolean ifNotExists, boolean isTemporary, boolean isSystemFunction, org.apache.calcite.sql.SqlNodeList resourceInfos, org.apache.calcite.sql.SqlNodeList propertyList)
-
-
Method Detail
-
getOperandList
@Nonnull public List<org.apache.calcite.sql.SqlNode> getOperandList()
- Specified by:
getOperandListin classorg.apache.calcite.sql.SqlCall
-
isSystemFunction
public boolean isSystemFunction()
-
getFunctionClassName
public org.apache.calcite.sql.SqlCharStringLiteral getFunctionClassName()
-
getFunctionLanguage
public String getFunctionLanguage()
-
getResourceInfos
public List<org.apache.calcite.sql.SqlNode> getResourceInfos()
-
getScope
protected String getScope()
Description copied from class:SqlCreateObjectThe scope will be used in unparse.- Specified by:
getScopein classSqlCreateObject
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparsein classSqlCreateObject
-
unparseCreateIfNotExists
protected void unparseCreateIfNotExists(org.apache.calcite.sql.SqlWriter writer, int leftPrec, int rightPrec)- Overrides:
unparseCreateIfNotExistsin classSqlCreateObject
-
-