public class ViewTableMacro extends Object implements TableMacro
| Modifier and Type | Field and Description |
|---|---|
protected CalciteSchema |
schema |
protected @Nullable List<String> |
schemaPath
Typically null.
|
protected @Nullable List<String> |
viewPath |
protected String |
viewSql |
| Constructor and Description |
|---|
ViewTableMacro(CalciteSchema schema,
String viewSql,
@Nullable List<String> schemaPath,
@Nullable List<String> viewPath,
@Nullable Boolean modifiable)
Creates a ViewTableMacro.
|
| Modifier and Type | Method and Description |
|---|---|
TranslatableTable |
apply(List<? extends Object> arguments)
Applies arguments to yield a table.
|
List<FunctionParameter> |
getParameters()
Returns the parameters of this function.
|
protected ModifiableViewTable |
modifiableViewTable(CalcitePrepare.AnalyzeViewResult parsed,
String viewSql,
List<String> schemaPath,
@Nullable List<String> viewPath,
CalciteSchema schema)
Allows a sub-class to return an extension of
ModifiableViewTable
by overriding this method. |
protected ViewTable |
viewTable(CalcitePrepare.AnalyzeViewResult parsed,
String viewSql,
List<String> schemaPath,
@Nullable List<String> viewPath)
Allows a sub-class to return an extension of
ViewTable by
overriding this method. |
protected final String viewSql
protected final CalciteSchema schema
protected final @Nullable List<String> schemaPath
viewSql.public ViewTableMacro(CalciteSchema schema, String viewSql, @Nullable List<String> schemaPath, @Nullable List<String> viewPath, @Nullable Boolean modifiable)
schema - Root schemaviewSql - SQL defining the viewschemaPath - Schema path relative to the root schemaviewPath - View path relative to the schema pathmodifiable - Request that a view is modifiable (dependent on analysis
of viewSql)public List<FunctionParameter> getParameters()
FunctiongetParameters in interface Functionpublic TranslatableTable apply(List<? extends Object> arguments)
TableMacroapply in interface TableMacroarguments - Argumentsprotected ModifiableViewTable modifiableViewTable(CalcitePrepare.AnalyzeViewResult parsed, String viewSql, List<String> schemaPath, @Nullable List<String> viewPath, CalciteSchema schema)
ModifiableViewTable
by overriding this method.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.