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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ExtFunction (final String name, final ExtensionFunction sig)
 

Private Attributes

final SqlTypeName ret
 

Detailed Description

Definition at line 1909 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1910 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.ExtFunction.ret, and com.mapd.parser.server.ExtensionFunction.toSqlSignature().

1910  {
1911  super(name,
1912  SqlKind.OTHER_FUNCTION,
1913  null,
1914  null,
1915  OperandTypes.family(sig.toSqlSignature()),
1916  SqlFunctionCategory.SYSTEM);
1917  ret = sig.getSqlRet();
1918  }
string name
Definition: setup.in.py:72

+ Here is the call graph for this function:

Member Function Documentation

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.ExtFunction.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1921 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.ExtFunction.ret.

1921  {
1922  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1923  return typeFactory.createTypeWithNullability(typeFactory.createSqlType(ret), true);
1924  }

Member Data Documentation

final SqlTypeName com.mapd.calcite.parser.MapDSqlOperatorTable.ExtFunction.ret
private

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