Package org.apache.solr.handler.sql
Class CalciteSolrDriver
- java.lang.Object
-
- org.apache.calcite.avatica.UnregisteredDriver
-
- org.apache.calcite.jdbc.Driver
-
- org.apache.solr.handler.sql.CalciteSolrDriver
-
- All Implemented Interfaces:
Driver
public class CalciteSolrDriver extends org.apache.calcite.jdbc.Driver
JDBC driver for Calcite Solr.It accepts connect strings that start with "jdbc:calcitesolr:".
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECT_STRING_PREFIX
static CalciteSolrDriver
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
connect(String url, Properties info)
protected String
getConnectStringPrefix()
void
setSolrClientCache(SolrClientCache solrClientCache)
-
Methods inherited from class org.apache.calcite.jdbc.Driver
createDriverVersion, createHandler, createMeta, createPrepareFactory, getConnectionProperties, getFactoryClassName
-
-
-
-
Field Detail
-
CONNECT_STRING_PREFIX
public static final String CONNECT_STRING_PREFIX
- See Also:
- Constant Field Values
-
INSTANCE
public static CalciteSolrDriver INSTANCE
-
-
Method Detail
-
getConnectStringPrefix
protected String getConnectStringPrefix()
- Overrides:
getConnectStringPrefix
in classorg.apache.calcite.jdbc.Driver
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connect
in interfaceDriver
- Overrides:
connect
in classorg.apache.calcite.avatica.UnregisteredDriver
- Throws:
SQLException
-
setSolrClientCache
public void setSolrClientCache(SolrClientCache solrClientCache)
-
-