This project has retired. For details please refer to its Attic page.
Lens Server: LensQuery

LensQuery Data Type

Instantiates a new lens query.

Properties
name data type description
queryHandle QueryHandle The query handle that represents this query uniquely
userQuery string The the query submitted by the user
submittedUser string The user who submitted the query.
priority Priority The priority of the query.
isPersistent boolean Is true if query's result would be persisted by server.
selectedDriverName string Name of the driver which executed the query (Example: hive/testDriver, jdbc/prodDriver etc)
driverQuery string The driver query. It is the final query (derived form user query) that was submitted by the driver for execution.
status QueryStatus The status of this query. Note: 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()
resultSetPath string The result set path for this query if the query output was persisted by the server.
driverOpHandle string The operation handle associated with the driver, if any.
queryConf LensConf The query conf that was used for executing this query.
submissionTime number The submission time.
launchTime number The query launch time. This will be submission time + time spent by query waiting in the queue
driverStartTime number The query execution start time on driver. This will >= launch time.
driverFinishTime number The the query execution end time on driver.
finishTime number The query finish time on server. This will be driver finish time + any extra time spent by server (like formatting the result)
closedTime number The the query close time when the query is purged by the server and no more operations are pending for it. Note: not supported as of now.
queryName string The query name, if any.
failedAttempts array of array of FailedAttempt
errorCode number
errorMessage string
queryHandleString string
persistent boolean Is true if query's result would be persisted by server.
Properties inherited from ToYAMLString
fieldsToAppend array of array of FieldNameAndValue

Example

{
  "queryHandle" : {
    "handleId" : "...",
    "handleIdString" : "...",
    "fieldsToAppend" : [ [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ], [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ] ]
  },
  "userQuery" : "...",
  "submittedUser" : "...",
  "priority" : "VERY_LOW",
  "isPersistent" : true,
  "selectedDriverName" : "...",
  "driverQuery" : "...",
  "status" : {
    "progress" : 12345.0,
    "status" : "CANCELED",
    "statusMessage" : "...",
    "isResultSetAvailable" : true,
    "errorCode" : 12345,
    "lensErrorTOErrorMsg" : "...",
    "queuedStatus" : { },
    "queueNumber" : 12345,
    "resultSetAvailable" : true,
    "progressMessage" : "...",
    "errorMessage" : "...",
    "lensErrorTO" : {
      "payload" : { },
      "code" : 12345,
      "childErrors" : [ [ { }, { } ], [ { }, { } ] ],
      "message" : "...",
      "stackTrace" : "..."
    },
    "fieldsToAppend" : [ [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ], [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ] ]
  },
  "resultSetPath" : "...",
  "driverOpHandle" : "...",
  "queryConf" : {
    "properties" : {
      "property1" : "...",
      "property2" : "..."
    },
    "fieldsToAppend" : [ [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ], [ {
      "name" : "...",
      "value" : { }
    }, {
      "name" : "...",
      "value" : { }
    } ] ]
  },
  "submissionTime" : 12345,
  "launchTime" : 12345,
  "driverStartTime" : 12345,
  "driverFinishTime" : 12345,
  "finishTime" : 12345,
  "closedTime" : 12345,
  "queryName" : "...",
  "failedAttempts" : [ [ {
    "driverName" : "...",
    "progress" : 12345.0,
    "progressMessage" : "...",
    "errorMessage" : "...",
    "driverStartTime" : 12345,
    "driverFinishTime" : 12345
  }, {
    "driverName" : "...",
    "progress" : 12345.0,
    "progressMessage" : "...",
    "errorMessage" : "...",
    "driverStartTime" : 12345,
    "driverFinishTime" : 12345
  } ], [ {
    "driverName" : "...",
    "progress" : 12345.0,
    "progressMessage" : "...",
    "errorMessage" : "...",
    "driverStartTime" : 12345,
    "driverFinishTime" : 12345
  }, {
    "driverName" : "...",
    "progress" : 12345.0,
    "progressMessage" : "...",
    "errorMessage" : "...",
    "driverStartTime" : 12345,
    "driverFinishTime" : 12345
  } ] ],
  "errorCode" : 12345,
  "errorMessage" : "...",
  "queryHandleString" : "...",
  "persistent" : true,
  "fieldsToAppend" : [ [ {
    "name" : "...",
    "value" : { }
  }, {
    "name" : "...",
    "value" : { }
  } ], [ {
    "name" : "...",
    "value" : { }
  }, {
    "name" : "...",
    "value" : { }
  } ] ]
}