public class ProxyLensQuery extends LensQuery
In most cases the query handle information should suffice which is available locally, and only in a few cases
like LensClient.LensClientResultSetWithStats
, extra information needs to be fetched
from Lens Server.
Note:This class if not meant to be instantiated by lens apps (using lens-client to interact with lens server) directly
ToYAMLString.FieldNameAndValue
Constructor and Description |
---|
ProxyLensQuery(LensStatement statement,
QueryHandle queryHandle) |
Modifier and Type | Method and Description |
---|---|
long |
getClosedTime()
The the query close time when the query is purged by the server and no more operations are pending for it.
|
long |
getDriverFinishTime()
The the query execution end time on driver.
|
String |
getDriverOpHandle()
The operation handle associated with the driver, if any.
|
String |
getDriverQuery()
The driver query.
|
long |
getDriverStartTime()
The query execution start time on driver.
|
Integer |
getErrorCode() |
String |
getErrorMessage() |
long |
getFinishTime()
The query finish time on server.
|
long |
getLaunchTime()
The query launch time.
|
Priority |
getPriority()
The priority of the query.
|
LensConf |
getQueryConf()
The query conf that was used for executing this query.
|
QueryHandle |
getQueryHandle()
The query handle that represents this query uniquely
|
String |
getQueryHandleString() |
String |
getQueryName()
The query name, if any.
|
String |
getResultSetPath()
The result set path for this query if the query output was persisted by the server.
|
String |
getSelectedDriverName()
Name of the driver which executed the query (Example: hive/testDriver, jdbc/prodDriver etc)
|
QueryStatus |
getStatus()
The status of this query.
|
long |
getSubmissionTime()
The submission time.
|
String |
getSubmittedUser()
The user who submitted the query.
|
String |
getUserQuery()
The the query submitted by the user
|
boolean |
isPersistent()
Is true if query's result would be persisted by server.
|
equals, getFailedAttempts, hashCode
append, appendFields, fromXMLString, getFieldsToAppend, toString, toXMLString
public ProxyLensQuery(LensStatement statement, QueryHandle queryHandle)
public QueryHandle getQueryHandle()
LensQuery
getQueryHandle
in class LensQuery
public String getSubmittedUser()
LensQuery
getSubmittedUser
in class LensQuery
public String getUserQuery()
LensQuery
getUserQuery
in class LensQuery
public Priority getPriority()
LensQuery
getPriority
in class LensQuery
public boolean isPersistent()
LensQuery
isPersistent
in class LensQuery
public String getSelectedDriverName()
LensQuery
getSelectedDriverName
in class LensQuery
public String getDriverQuery()
LensQuery
getDriverQuery
in class LensQuery
public QueryStatus getStatus()
LensQuery
QueryStatus.getStatus()
method can be used to get the QueryStatus.Status
enum that defines
the current state of the query. Also other utility methods are available to check the status of the query like
QueryStatus.queued()
, QueryStatus.successful()
, QueryStatus.finished()
,
QueryStatus.failed()
and QueryStatus.running()
public String getResultSetPath()
LensQuery
getResultSetPath
in class LensQuery
public String getDriverOpHandle()
LensQuery
getDriverOpHandle
in class LensQuery
public LensConf getQueryConf()
LensQuery
getQueryConf
in class LensQuery
public long getSubmissionTime()
LensQuery
getSubmissionTime
in class LensQuery
public long getLaunchTime()
LensQuery
getLaunchTime
in class LensQuery
public long getDriverStartTime()
LensQuery
getDriverStartTime
in class LensQuery
public long getDriverFinishTime()
LensQuery
getDriverFinishTime
in class LensQuery
public long getFinishTime()
LensQuery
getFinishTime
in class LensQuery
public long getClosedTime()
LensQuery
getClosedTime
in class LensQuery
public String getQueryName()
LensQuery
getQueryName
in class LensQuery
public Integer getErrorCode()
getErrorCode
in class LensQuery
public String getErrorMessage()
getErrorMessage
in class LensQuery
public String getQueryHandleString()
getQueryHandleString
in class LensQuery
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.