Class View

java.lang.Object
org.apache.drill.exec.dotdrill.View

public class View extends Object
  • Constructor Details

  • 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 of DynamicRecordType.
      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

      public String getSql()
    • setSql

      public void setSql(String sql)
    • getName

      public String getName()
    • getFields

      public List<View.Field> getFields()
    • getWorkspaceSchemaPath

      public List<String> getWorkspaceSchemaPath()