public class SqlAdvisorGetHintsFunction extends Object implements TableFunction, ImplementableFunction
| Constructor and Description |
|---|
SqlAdvisorGetHintsFunction() |
| Modifier and Type | Method and Description |
|---|---|
static Enumerable<SqlAdvisorHint> |
getCompletionHints(SqlAdvisor advisor,
String sql,
int pos)
Returns completion hints for a given SQL statement.
|
Type |
getElementType(List<Object> arguments)
Returns the row type of the table yielded by this function when
applied to given arguments.
|
CallImplementor |
getImplementor()
Returns implementor that translates the function to linq4j expression.
|
List<FunctionParameter> |
getParameters()
Returns the parameters of this function.
|
RelDataType |
getRowType(RelDataTypeFactory typeFactory,
List<Object> arguments)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
public CallImplementor getImplementor()
ImplementableFunctiongetImplementor in interface ImplementableFunctionpublic RelDataType getRowType(RelDataTypeFactory typeFactory, List<Object> arguments)
TableFunctiongetRowType in interface TableFunctiontypeFactory - Type factoryarguments - arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)public Type getElementType(List<Object> arguments)
TableFunctiongetElementType in interface TableFunctionarguments - arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)Object[].class)public List<FunctionParameter> getParameters()
FunctiongetParameters in interface Functionpublic static Enumerable<SqlAdvisorHint> getCompletionHints(SqlAdvisor advisor, String sql, int pos)
Typically this is called from generated code
(via IMPLEMENTOR).
advisor - Advisor to produce completion hintssql - SQL to completepos - Cursor position in SQLCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.