Class SplunkDriver
- java.lang.Object
-
- org.apache.calcite.avatica.UnregisteredDriver
-
- org.apache.calcite.jdbc.Driver
-
- org.apache.calcite.adapter.splunk.SplunkDriver
-
- All Implemented Interfaces:
java.sql.Driver
public class SplunkDriver extends Driver
JDBC driver for Splunk.It accepts connect strings that start with "jdbc:splunk:".
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SplunkDriver.MockSplunkConnection
Connection that looks up responses from a static map.private static class
SplunkDriver.WrappingSplunkConnection
Connection that records requests and responses.
-
Field Summary
-
Fields inherited from class org.apache.calcite.jdbc.Driver
CONNECT_STRING_PREFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SplunkDriver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
connect(java.lang.String url, java.util.Properties info)
protected org.apache.calcite.avatica.DriverVersion
createDriverVersion()
protected java.lang.String
getConnectStringPrefix()
-
Methods inherited from class org.apache.calcite.jdbc.Driver
createHandler, createMeta, createPrepareFactory, getConnectionProperties, getFactoryClassName
-
-
-
-
Method Detail
-
getConnectStringPrefix
protected java.lang.String getConnectStringPrefix()
- Overrides:
getConnectStringPrefix
in classDriver
-
createDriverVersion
protected org.apache.calcite.avatica.DriverVersion createDriverVersion()
- Overrides:
createDriverVersion
in classDriver
-
connect
public java.sql.Connection connect(java.lang.String url, java.util.Properties info) throws java.sql.SQLException
- Specified by:
connect
in interfacejava.sql.Driver
- Overrides:
connect
in classorg.apache.calcite.avatica.UnregisteredDriver
- Throws:
java.sql.SQLException
-
-