OmniSciDB  c1a53651b2
 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 2668 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 2669 of file HeavyDBSqlOperatorTable.java.

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

2669  {
2670  super(name,
2671  SqlKind.OTHER_FUNCTION,
2672  null,
2673  null,
2674  OperandTypes.family(sig.toSqlSignature()),
2675  SqlFunctionCategory.SYSTEM);
2676  this.sig = sig;
2677  arg_names = sig.getArgNames();
2678  }
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 2681 of file HeavyDBSqlOperatorTable.java.

2681  {
2682  return arg_names;
2683  }
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ExtFunction.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 2686 of file HeavyDBSqlOperatorTable.java.

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

2686  {
2687  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
2688  if (ExtensionFunction.isArrayType(sig.getRet())) {
2689  SqlTypeName valueType =
2690  toSqlTypeName(ExtensionFunction.getValueType(sig.getRet()));
2691  RelDataType subType = typeFactory.createSqlType(valueType, -1);
2692  RelDataType arr = typeFactory.createArrayType(subType, -1);
2693  // should the return type nullable property be true?
2694  return arr;
2695  } else {
2696  SqlTypeName ret = sig.getSqlRet();
2697  return typeFactory.createTypeWithNullability(
2698  typeFactory.createSqlType(ret), true);
2699  }
2700  }

+ 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 2703 of file HeavyDBSqlOperatorTable.java.

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

Definition at line 2702 of file HeavyDBSqlOperatorTable.java.


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