OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction:

Public Member Functions

List< String > getParamNames ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ExtFunction (final String name, final ExtensionFunction sig)
 

Private Attributes

final ExtensionFunction sig
 
final List< String > arg_names
 

Detailed Description

Definition at line 3085 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.ExtFunction ( final String  name,
final ExtensionFunction  sig 
)
inlinepackage

Definition at line 3086 of file HeavyDBSqlOperatorTable.java.

References com.mapd.parser.server.ExtensionFunction.toSqlSignature().

3086  {
3087  super(name,
3088  SqlKind.OTHER_FUNCTION,
3089  null,
3090  null,
3091  OperandTypes.family(sig.toSqlSignature()),
3092  SqlFunctionCategory.USER_DEFINED_FUNCTION);
3093  this.sig = sig;
3094  arg_names = sig.getArgNames();
3095  }
final java.util.List< SqlTypeFamily > toSqlSignature()
string name
Definition: setup.in.py:72

+ Here is the call graph for this function:

Member Function Documentation

List<String> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.getParamNames ( )
inline

Definition at line 3098 of file HeavyDBSqlOperatorTable.java.

3098  {
3099  return arg_names;
3100  }
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 3103 of file HeavyDBSqlOperatorTable.java.

References com.mapd.parser.server.ExtensionFunction.getValueType(), and com.mapd.parser.server.ExtensionFunction.isArrayType().

3103  {
3104  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
3105  if (ExtensionFunction.isArrayType(sig.getRet())) {
3106  SqlTypeName valueType =
3107  toSqlTypeName(ExtensionFunction.getValueType(sig.getRet()));
3108  RelDataType subType = typeFactory.createSqlType(valueType, -1);
3109  RelDataType arr = typeFactory.createArrayType(subType, -1);
3110  // should the return type nullable property be true?
3111  return arr;
3112  } else {
3113  SqlTypeName ret = sig.getSqlRet();
3114  return typeFactory.createTypeWithNullability(
3115  typeFactory.createSqlType(ret), true);
3116  }
3117  }

+ Here is the call graph for this function:

Member Data Documentation

final List<String> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.arg_names
private

Definition at line 3120 of file HeavyDBSqlOperatorTable.java.

final ExtensionFunction com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.sig
private

Definition at line 3119 of file HeavyDBSqlOperatorTable.java.


The documentation for this class was generated from the following file: