Class DrillSqlLineApplication

java.lang.Object
sqlline.Application
org.apache.drill.exec.client.DrillSqlLineApplication

public class DrillSqlLineApplication extends sqlline.Application

Drill SqlLine application configuration.

Customizes SqlLine for Drill, i.e. overrides application info message, known drivers, connection url examples, removes non applicable commands, sets SqlLine properties.

Uses DRILL_SQLLINE_CONF as base configuration, allows to override it using DRILL_SQLLINE_OVERRIDE_CONF. If configuration files are missing in the classpath, issues warning and proceeds with default SqlLine configuration.

  • Constructor Details

    • DrillSqlLineApplication

      public DrillSqlLineApplication()
    • DrillSqlLineApplication

      public DrillSqlLineApplication(String configName, String overrideConfigName)
  • Method Details

    • getConfig

      public com.typesafe.config.Config getConfig()
    • getInfoMessage

      public String getInfoMessage()
      Overrides:
      getInfoMessage in class sqlline.Application
    • getVersion

      public String getVersion()
      Overrides:
      getVersion in class sqlline.Application
    • allowedDrivers

      public List<String> allowedDrivers()
      Overrides:
      allowedDrivers in class sqlline.Application
    • getOutputFormats

      public Map<String,sqlline.OutputFormat> getOutputFormats(sqlline.SqlLine sqlLine)
      Overrides:
      getOutputFormats in class sqlline.Application
    • getConnectionUrlExamples

      public Collection<String> getConnectionUrlExamples()
      Overrides:
      getConnectionUrlExamples in class sqlline.Application
    • getCommandHandlers

      public Collection<sqlline.CommandHandler> getCommandHandlers(sqlline.SqlLine sqlLine)
      Overrides:
      getCommandHandlers in class sqlline.Application
    • getOpts

      public sqlline.SqlLineOpts getOpts(sqlline.SqlLine sqlLine)
      Overrides:
      getOpts in class sqlline.Application
    • getPromptHandler

      public sqlline.PromptHandler getPromptHandler(sqlline.SqlLine sqlLine)
      Overrides:
      getPromptHandler in class sqlline.Application