Class GoogleSheetsRootSchema

java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.googlesheets.schema.GoogleSheetsRootSchema
All Implemented Interfaces:
AutoCloseable, org.apache.calcite.schema.Schema, SchemaPartitionExplorer

public class GoogleSheetsRootSchema extends AbstractSchema
  • Constructor Details

  • Method Details

    • getSubSchemaNames

      public Set<String> getSubSchemaNames()
      Specified by:
      getSubSchemaNames in interface org.apache.calcite.schema.Schema
      Overrides:
      getSubSchemaNames in class AbstractSchema
    • getSubSchema

      public AbstractSchema getSubSchema(String name)
      Specified by:
      getSubSchema in interface org.apache.calcite.schema.Schema
      Overrides:
      getSubSchema in class AbstractSchema
    • getTable

      public org.apache.calcite.schema.Table getTable(String tableName)
      Specified by:
      getTable in interface org.apache.calcite.schema.Schema
      Overrides:
      getTable in class AbstractSchema
    • getTypeName

      public String getTypeName()
      Description copied from class: AbstractSchema
      Returns string describing schema type which shows where the schema came from. Good practice here is to return json type name of storage plugin's config.
      Specified by:
      getTypeName in class AbstractSchema
      Returns:
      schema type name
    • getTokenMap

      public Map<String,String> getTokenMap()
    • getFileTokenWithCorrectCase

      public static String getFileTokenWithCorrectCase(Map<String,String> tokenMap, String lowercaseToken)
      Drill automatically converts the file token to lower case during DDL queries. Since Google is case-sensitive, this method insures that we are using the correct file token.
      Returns:
      A file token in the correct case.