public class LensQuery extends ToYAMLString
ToYAMLString.FieldNameAndValue
Constructor and Description |
---|
LensQuery(QueryHandle queryHandle,
String userQuery,
String submittedUser,
Priority priority,
boolean isPersistent,
String selectedDriverName,
String driverQuery,
QueryStatus status,
String resultSetPath,
String driverOpHandle,
LensConf queryConf,
long submissionTime,
long launchTime,
long driverStartTime,
long driverFinishTime,
long finishTime,
long closedTime,
String queryName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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
|
int |
hashCode() |
boolean |
isPersistent()
Is true if query's result would be persisted by server.
|
append, appendFields, fromXMLString, getFieldsToAppend, toString, toXMLString
@ConstructorProperties(value={"queryHandle","userQuery","submittedUser","priority","isPersistent","selectedDriverName","driverQuery","status","resultSetPath","driverOpHandle","queryConf","submissionTime","launchTime","driverStartTime","driverFinishTime","finishTime","closedTime","queryName"}) @Generated(value="lombok") public LensQuery(QueryHandle queryHandle, String userQuery, String submittedUser, Priority priority, boolean isPersistent, String selectedDriverName, String driverQuery, QueryStatus status, String resultSetPath, String driverOpHandle, LensConf queryConf, long submissionTime, long launchTime, long driverStartTime, long driverFinishTime, long finishTime, long closedTime, String queryName)
public Integer getErrorCode()
public String getErrorMessage()
public String getQueryHandleString()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public QueryHandle getQueryHandle()
@Generated(value="lombok") public String getUserQuery()
@Generated(value="lombok") public String getSubmittedUser()
@Generated(value="lombok") public Priority getPriority()
@Generated(value="lombok") public boolean isPersistent()
@Generated(value="lombok") public String getSelectedDriverName()
@Generated(value="lombok") public String getDriverQuery()
@Generated(value="lombok") public QueryStatus getStatus()
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()
@Generated(value="lombok") public String getResultSetPath()
@Generated(value="lombok") public String getDriverOpHandle()
@Generated(value="lombok") public LensConf getQueryConf()
@Generated(value="lombok") public long getSubmissionTime()
@Generated(value="lombok") public long getLaunchTime()
@Generated(value="lombok") public long getDriverStartTime()
@Generated(value="lombok") public long getDriverFinishTime()
@Generated(value="lombok") public long getFinishTime()
@Generated(value="lombok") public long getClosedTime()
@Generated(value="lombok") public String getQueryName()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.