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

Public Member Functions

SqlReturnTypeInference getRowTypeInference ()
 

Package Functions

 ExtTableFunction (final String name, final ExtensionFunction sig)
 

Private Attributes

final List< SqlTypeName > outs
 

Detailed Description

Definition at line 1827 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1828 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.outs, and com.mapd.parser.server.ExtensionFunction.toSqlSignature().

1828  {
1829  super(name,
1830  SqlKind.OTHER_FUNCTION,
1831  ReturnTypes.CURSOR,
1832  null,
1833  OperandTypes.family(sig.toSqlSignature()),
1834  SqlFunctionCategory.USER_DEFINED_TABLE_FUNCTION);
1835  outs = sig.getSqlOuts();
1836  }
string name
Definition: setup.py:44

+ Here is the call graph for this function:

Member Function Documentation

SqlReturnTypeInference com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.getRowTypeInference ( )
inline

Definition at line 1839 of file MapDSqlOperatorTable.java.

1839  {
1840  return opBinding -> {
1841  FieldInfoBuilder ret = opBinding.getTypeFactory().builder();
1842  for (int out_idx = 0; out_idx < outs.size(); ++out_idx) {
1843  ret = ret.add("OUT" + out_idx, outs.get(out_idx));
1844  }
1845  return ret.build();
1846  };
1847  }

Member Data Documentation

final List<SqlTypeName> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.outs
private

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