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(AbstractQueryContext queryContext)
decide priority based on query's cost.
|
LensResultSet |
fetchResultSet(QueryContext ctx)
Default implementation for fetchResultSet for all drivers.
|
String |
getFullyQualifiedName()
Driver's fully qualified name ( Example hive/hive1, jdbc/mysql1)
|
DriverQueryHook |
getQueryHook() |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
cancelQuery, close, closePreparedQuery, closeQuery, closeResultSet, estimate, execute, executeAsync, explain, explainAndPrepare, 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 LensResultSet fetchResultSet(QueryContext ctx) throws LensException
createResultSet(QueryContext)
fetchResultSet
in interface LensDriver
ctx
- The query contextLensException
- the lens exceptionpublic Priority decidePriority(AbstractQueryContext queryContext)
LensDriver
decidePriority
in interface LensDriver
that handles this on-demand computation.
public DriverQueryHook getQueryHook()
getQueryHook
in interface LensDriver
for more details.
@Generated(value="lombok") public String getFullyQualifiedName()
getFullyQualifiedName
in interface LensDriver
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.