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, waitcancelQuery, close, closePreparedQuery, closeQuery, closeResultSet, estimate, execute, executeAsync, explain, explainAndPrepare, getConf, getQueryConstraints, getWaitingQuerySelectionPolicies, prepare, registerDriverEventListener, registerForCompletionNotification, updateStatusreadExternal, writeExternalpublic void configure(org.apache.hadoop.conf.Configuration conf,
             String driverType,
             String driverName)
               throws LensException
LensDriverConfiguration passed.configure in interface LensDriverconf - 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 LensDriverctx - The query contextLensException - the lens exceptionpublic Priority decidePriority(AbstractQueryContext queryContext)
LensDriverdecidePriority in interface LensDriverthat handles this on-demand computation.public DriverQueryHook getQueryHook()
getQueryHook in interface LensDriverfor more details.@Generated(value="lombok") public String getFullyQualifiedName()
getFullyQualifiedName in interface LensDriverCopyright © 2014–2016 Apache Software Foundation. All rights reserved.