Package org.apache.drill.exec.dotdrill
Class View
java.lang.Object
org.apache.drill.exec.dotdrill.View
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
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 ofDynamicRecordType
.getSql()
boolean
hasStar()
boolean
void
-
Constructor Details
-
View
-
View
-
-
Method Details
-
getRowType
public 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 ofDynamicRecordType
.- Parameters:
factory
- factory for rel data types creation- Returns:
- struct type that describes names and types of all
view fields or extension of
DynamicRecordType
when view fields are empty
-
isDynamic
public boolean isDynamic() -
hasStar
public boolean hasStar() -
getSql
-
setSql
-
getName
-
getFields
-
getWorkspaceSchemaPath
-