Class HttpAPIConnectionSchema

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

public class HttpAPIConnectionSchema extends AbstractSchema
In the HTTP storage plugin, users can define specific connections or APIs. This class represents the database component of other storage plugins.
  • 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)
      Gets the table that is received from the query. In this case, the table actually are arguments which are passed in the URL string.
      Specified by:
      getTable in interface org.apache.calcite.schema.Schema
      Overrides:
      getTable in class AbstractSchema
      Parameters:
      tableName - The "tableName" actually will contain the URL arguments passed to the record reader
      Returns:
      the selected table
    • getTableNames

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