Package org.apache.drill.exec.client
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.
-
Field Summary
Fields inherited from class sqlline.Application
DEFAULT_APP_INFO_MESSAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<sqlline.CommandHandler>
getCommandHandlers
(sqlline.SqlLine sqlLine) com.typesafe.config.Config
sqlline.SqlLineOpts
getOpts
(sqlline.SqlLine sqlLine) getOutputFormats
(sqlline.SqlLine sqlLine) sqlline.PromptHandler
getPromptHandler
(sqlline.SqlLine sqlLine) Methods inherited from class sqlline.Application
getAvailableScriptEngineNames, getConnectInteractiveModes, getDefaultInteractiveMode, getName2HighlightStyle, getName2TableOutputFormatStyle, initDrivers
-
Constructor Details
-
DrillSqlLineApplication
public DrillSqlLineApplication() -
DrillSqlLineApplication
-
-
Method Details
-
getConfig
public com.typesafe.config.Config getConfig() -
getInfoMessage
- Overrides:
getInfoMessage
in classsqlline.Application
-
getVersion
- Overrides:
getVersion
in classsqlline.Application
-
allowedDrivers
- Overrides:
allowedDrivers
in classsqlline.Application
-
getOutputFormats
- Overrides:
getOutputFormats
in classsqlline.Application
-
getConnectionUrlExamples
- Overrides:
getConnectionUrlExamples
in classsqlline.Application
-
getCommandHandlers
- Overrides:
getCommandHandlers
in classsqlline.Application
-
getOpts
public sqlline.SqlLineOpts getOpts(sqlline.SqlLine sqlLine) - Overrides:
getOpts
in classsqlline.Application
-
getPromptHandler
public sqlline.PromptHandler getPromptHandler(sqlline.SqlLine sqlLine) - Overrides:
getPromptHandler
in classsqlline.Application
-