public class View extends Object
Modifier and Type | Class and Description |
---|---|
static class |
View.Field |
Constructor and Description |
---|
View(String name,
String sql,
List<View.Field> fields,
List<String> workspaceSchemaPath) |
View(String name,
String sql,
org.apache.calcite.rel.type.RelDataType rowType,
List<String> workspaceSchemaPath) |
Modifier and Type | Method and Description |
---|---|
List<View.Field> |
getFields() |
String |
getName() |
org.apache.calcite.rel.type.RelDataType |
getRowType(org.apache.calcite.rel.type.RelDataTypeFactory factory)
If view fields are present then attempts to gather them
into struct type, otherwise returns extension of
DynamicRecordType . |
String |
getSql() |
List<String> |
getWorkspaceSchemaPath() |
boolean |
hasStar() |
boolean |
isDynamic() |
void |
setSql(String sql) |
public View(String name, String sql, org.apache.calcite.rel.type.RelDataType rowType, List<String> workspaceSchemaPath)
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory factory)
DynamicRecordType
.factory
- factory for rel data types creationDynamicRecordType
when view fields are emptypublic boolean isDynamic()
public boolean hasStar()
public String getSql()
public void setSql(String sql)
public String getName()
public List<View.Field> getFields()
Copyright © 1970 The Apache Software Foundation. All rights reserved.