Class DriverImpl
java.lang.Object
org.apache.solr.client.solrj.io.sql.DriverImpl
- All Implemented Interfaces:
Driver
Get a Connection with an url and properties.
jdbc:solr://zkhost:port?collection=collection&aggregationMode=map_reduce
jdbc:solr:http://solrHost:port?collection=collection&aggregationMode=map_reduce
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty naming aSolrClientCachefor this connection to use instead of creating one (which isn't permitted within Solr). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties props) intintgetPropertyInfo(String url, Properties info) boolean
-
Field Details
-
SOLR_CLIENT_CACHE_PROP
Property naming aSolrClientCachefor this connection to use instead of creating one (which isn't permitted within Solr). The caller retains ownership.- See Also:
-
-
Constructor Details
-
DriverImpl
public DriverImpl()
-
-
Method Details
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
connect
- Throws:
SQLException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver
-