public class ViewTableMacro extends Object implements TableMacro
| Modifier and Type | Field and Description |
|---|---|
private Boolean |
modifiable |
protected CalciteSchema |
schema |
protected List<String> |
schemaPath
Typically null.
|
protected List<String> |
viewPath |
protected String |
viewSql |
| Constructor and Description |
|---|
ViewTableMacro(CalciteSchema schema,
String viewSql,
List<String> schemaPath,
List<String> viewPath,
Boolean modifiable)
Creates a ViewTableMacro.
|
| Modifier and Type | Method and Description |
|---|---|
TranslatableTable |
apply(List<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,
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,
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
private final Boolean modifiable
protected final List<String> schemaPath
viewSql.public ViewTableMacro(CalciteSchema schema, String viewSql, List<String> schemaPath, List<String> viewPath, 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<Object> arguments)
TableMacroapply in interface TableMacroarguments - Argumentsprotected ModifiableViewTable modifiableViewTable(CalcitePrepare.AnalyzeViewResult parsed, String viewSql, List<String> schemaPath, List<String> viewPath, CalciteSchema schema)
ModifiableViewTable
by overriding this method.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.