public abstract class AbstractLensDriver extends Object implements LensDriver
Constructor and Description |
---|
AbstractLensDriver() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.apache.hadoop.conf.Configuration conf,
String driverType,
String driverName)
Configure driver with
Configuration passed. |
Priority |
decidePriority(QueryContext queryContext)
decide priority based on query's cost.
|
String |
getFullyQualifiedName()
Driver's fully qualified name ( Example hive/hive1, jdbc/mysql1)
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancelQuery, close, closePreparedQuery, closeQuery, closeResultSet, estimate, execute, executeAsync, explain, explainAndPrepare, fetchResultSet, getConf, getQueryConstraints, getWaitingQuerySelectionPolicies, prepare, registerDriverEventListener, registerForCompletionNotification, updateStatus
readExternal, writeExternal
public void configure(org.apache.hadoop.conf.Configuration conf, String driverType, String driverName) throws LensException
LensDriver
Configuration
passed.configure
in interface LensDriver
conf
- The configuration objectdriverType
- Type of the driver (Example: hive, jdbc, el)driverName
- Name of this driverLensException
- the lens exceptionpublic Priority decidePriority(QueryContext queryContext)
LensDriver
decidePriority
in interface LensDriver
that handles this on-demand computation.
@Generated(value="lombok") public String getFullyQualifiedName()
getFullyQualifiedName
in interface LensDriver
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.