|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.server.query.LensServerDAO
public class LensServerDAO
Top level class which logs and retrieves finished query from Database.
Constructor Summary | |
---|---|
LensServerDAO()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LensServerDAO()
Method Detail |
---|
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 Exception
query
- to be inserted
Exception
- the exceptionpublic FinishedLensQuery getQuery(String handle)
handle
- to be fetched
public 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 date
LensException
- the lens exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |