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.DriverJDBC driver for Calcite Solr.It accepts connect strings that start with "jdbc:calcitesolr:".
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECT_STRING_PREFIXstatic CalciteSolrDriverINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionconnect(String url, Properties info)protected StringgetConnectStringPrefix()voidsetSolrClientCache(SolrClientCache solrClientCache)-
Methods inherited from class org.apache.calcite.jdbc.Driver
createDriverVersion, createHandler, createMeta, createPrepare, createPrepareFactory, getConnectionProperties, getFactoryClassName, withPrepareFactory
-
-
-
-
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:
getConnectStringPrefixin classorg.apache.calcite.jdbc.Driver
-
connect
public Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Overrides:
connectin classorg.apache.calcite.avatica.UnregisteredDriver- Throws:
SQLException
-
setSolrClientCache
public void setSolrClientCache(SolrClientCache solrClientCache)
-
-