Class GoogleSheetsDrillSchema

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

public class GoogleSheetsDrillSchema extends AbstractSchema
This class represents the actual tab within a GoogleSheets document.
  • Constructor Details

  • Method Details

    • 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
    • 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
    • getTableNames

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

      public boolean isMutable()
      Specified by:
      isMutable in interface org.apache.calcite.schema.Schema
      Overrides:
      isMutable in class AbstractSchema
    • createNewTable

      public CreateTableEntry createNewTable(String tableName, List<String> partitionColumns, StorageStrategy storageStrategy)
      Description copied from class: AbstractSchema
      Creates table entry using table name, list of partition columns and storage strategy used to create table folder and files
      Overrides:
      createNewTable in class AbstractSchema
      Parameters:
      tableName - : new table name.
      partitionColumns - : list of partition columns. Empty list if there is no partition columns.
      storageStrategy - : storage strategy used to create table folder and files
      Returns:
      create table entry
    • modifyTable

      public ModifyTableEntry modifyTable(String tableName)
      Description copied from class: AbstractSchema
      Returns table entry using table name to insert records into the table.
      Overrides:
      modifyTable in class AbstractSchema
      Parameters:
      tableName - : new table name.
      Returns:
      insert table entry
    • dropTable

      public void dropTable(String indexName)
      Overrides:
      dropTable in class AbstractSchema