Package org.apache.calcite.sql
Interface SqlTableFunction
- All Known Implementing Classes:
MockSqlOperatorTable.BadTableFunction,MockSqlOperatorTable.DedupFunction,MockSqlOperatorTable.DynamicTypeFunction,MockSqlOperatorTable.InvalidTableFunction,MockSqlOperatorTable.RampFunction,MockSqlOperatorTable.RowFunction,MockSqlOperatorTable.ScoreTableFunction,MockSqlOperatorTable.SimilarlityTableFunction,MockSqlOperatorTable.TableFunctionReturnTableFunction,MockSqlOperatorTable.TopNTableFunction,SqlHopTableFunction,SqlSessionTableFunction,SqlTumbleTableFunction,SqlUserDefinedTableFunction,SqlUserDefinedTableMacro,SqlWindowTableFunction
public interface SqlTableFunction
A function that returns a table.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the record type of the table yielded by this function when applied to given arguments.default @Nullable TableCharacteristictableCharacteristic(int ordinal) Returns the table parameter characteristics forordinalth parameter to this table function.
-
Method Details
-
getRowTypeInference
SqlReturnTypeInference getRowTypeInference()Returns the record type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).- Returns:
- strategy to infer the row type of a call to this function
-
tableCharacteristic
Returns the table parameter characteristics forordinalth parameter to this table function.Returns
nullif theordinalth argument is not table parameter or theordinalis smaller than 0 or theordinalis greater than or equals to the number of parameters.
-