public class LensServerDAO extends Object
Constructor and Description |
---|
LensServerDAO() |
Modifier and Type | Method and Description |
---|---|
void |
createFinishedQueriesTable()
Method to create finished queries table, this is required for embedded lens server.
|
void |
dropFinishedQueriesTable()
Drop finished queries table.
|
List<QueryHandle> |
findFinishedQueries(String state,
String user,
String queryName,
long fromDate,
long toDate)
Find finished queries.
|
Connection |
getConnection() |
FinishedLensQuery |
getQuery(String handle)
Fetch Finished query from Database.
|
void |
init(org.apache.hadoop.conf.Configuration conf)
Inits the.
|
void |
insertFinishedQuery(FinishedLensQuery query)
DAO method to insert a new Finished query into Table.
|
public void init(org.apache.hadoop.conf.Configuration conf)
conf
- the confpublic Connection getConnection() throws SQLException
SQLException
public void dropFinishedQueriesTable()
public void createFinishedQueriesTable() throws Exception
Exception
- the exceptionpublic void insertFinishedQuery(FinishedLensQuery query) throws SQLException
query
- to be insertedSQLException
- the exceptionpublic FinishedLensQuery getQuery(String handle)
handle
- to be fetchedpublic List<QueryHandle> findFinishedQueries(String state, String user, String queryName, long fromDate, long toDate) throws LensException
state
- the stateuser
- the userqueryName
- the query namefromDate
- the from datetoDate
- the to dateLensException
- the lens exceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.