Modifier and Type | Method and Description |
---|---|
static <DATA> LensAPIResult<DATA> |
LensAPIResult.composedOf(String apiVersion,
String id,
DATA data) |
static <DATA> LensAPIResult<DATA> |
LensAPIResult.composedOf(String apiVersion,
String id,
DATA data,
javax.ws.rs.core.Response.StatusType httpStatusCode) |
static LensAPIResult<NoResultData> |
LensAPIResult.composedOf(String apiVersion,
String id,
LensErrorTO lensErrorTO,
javax.ws.rs.core.Response.StatusType httpStatusCode) |
Constructor and Description |
---|
LensAPIException(LensAPIResult lensAPIErrorResult) |
Modifier and Type | Method and Description |
---|---|
LensAPIResult |
ScheduleResourceHelper.deleteJob(String jobHandle,
String sessionId) |
LensAPIResult<QueryCostTO> |
QueryHelper.estimateQuery(String queryString) |
LensAPIResult<QueryCostTO> |
QueryHelper.estimateQuery(String queryString,
String sessionHandleString) |
LensAPIResult<QueryCostTO> |
QueryHelper.estimateQuery(String queryString,
String sessionHandleString,
String conf)
Estimate the query
|
LensAPIResult |
QueryHelper.executeQuery(String queryString) |
LensAPIResult |
QueryHelper.executeQuery(String queryString,
String queryName) |
LensAPIResult |
QueryHelper.executeQuery(String queryString,
String queryName,
String sessionHandleString) |
LensAPIResult |
QueryHelper.executeQuery(String queryString,
String queryName,
String sessionHandleString,
String conf) |
LensAPIResult |
QueryHelper.executeQuery(String queryString,
String queryName,
String user,
String sessionHandleString,
LensConf conf)
Execute the query
|
LensAPIResult |
QueryHelper.executeQuery(String queryString,
String queryName,
String sessionHandleString,
String conf,
String outputMediaType)
Execute with conf
|
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString) |
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString,
String timeout) |
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString,
String timeout,
String queryName) |
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString,
String timeout,
String queryName,
String sessionHandleString) |
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString,
String timeout,
String queryName,
String sessionHandleString,
LensConf conf) |
LensAPIResult |
QueryHelper.executeQueryTimeout(String queryString,
String timeout,
String queryName,
String sessionHandleString,
String conf)
Execute with timeout
|
LensAPIResult<QueryPlan> |
QueryHelper.explainQuery(String queryString) |
LensAPIResult<QueryPlan> |
QueryHelper.explainQuery(String queryString,
String sessionHandleString) |
LensAPIResult<QueryPlan> |
QueryHelper.explainQuery(String queryString,
String sessionHandleString,
String conf)
Explain the query
|
LensAPIResult<SchedulerJobInstanceInfo> |
ScheduleResourceHelper.getInstanceDetails(String instanceHandle,
String sessionId) |
LensAPIResult<XJob> |
ScheduleResourceHelper.getJobDefinition(String jobHandle,
String sessionId) |
LensAPIResult<XJob> |
ScheduleResourceHelper.getJobDefinition(String jobHandle,
String sessionId,
javax.ws.rs.core.MediaType inputMedia,
String outputMedia) |
LensAPIResult<SchedulerJobInfo> |
ScheduleResourceHelper.getJobDetails(String jobHandle,
String sessionHandleString) |
LensAPIResult<QueryHandle> |
SavedQueryResourceHelper.runSavedQuery(Long queryId,
HashMap<String,String> params) |
LensAPIResult<QueryHandle> |
SavedQueryResourceHelper.runSavedQuery(Long queryId,
String sessionHandleString,
HashMap<String,String> params) |
LensAPIResult<QueryHandle> |
SavedQueryResourceHelper.runSavedQuery(Long queryId,
String sessionHandleString,
String conf,
HashMap<String,String> params) |
LensAPIResult<Boolean> |
ScheduleResourceHelper.updateInstance(String instanceHandle,
String action,
String sessionId) |
LensAPIResult |
ScheduleResourceHelper.updateJob(String jobHandle,
String action,
String sessionHandleString) |
LensAPIResult |
ScheduleResourceHelper.updateJob(XJob job,
String jobHandle,
String sessionHandleString) |
Modifier and Type | Method and Description |
---|---|
LensAPIResult |
LensException.getLensAPIResult()
The lensResponse prepared by
LensException.buildLensErrorResponse(ErrorCollection, String, String) |
Modifier and Type | Method and Description |
---|---|
LensAPIResult<QuerySubmitResult> |
QueryServiceResource.prepareQuery(LensSessionHandle sessionid,
String query,
String operation,
LensConf conf,
String queryName)
Prepare a query or 'explain and prepare' the query.
|
LensAPIResult<QuerySubmitResult> |
QueryServiceResource.query(LensSessionHandle sessionid,
String query,
String operation,
LensConf conf,
Long timeoutmillis,
String queryName)
Submit the query for explain or execute or execute with a timeout.
|
Modifier and Type | Method and Description |
---|---|
LensAPIResult<QueryHandle> |
SavedQueryResource.run(long id,
javax.ws.rs.core.UriInfo info,
LensSessionHandle sessionid,
LensConf conf)
Runs the saved query with the given id and returns a query handle.
|
Modifier and Type | Method and Description |
---|---|
LensAPIResult |
ScheduleResource.deleteJob(LensSessionHandle sessionId,
SchedulerJobHandle jobHandle)
Marks the job for deletion.
|
LensAPIResult<SchedulerJobInstanceInfo> |
ScheduleResource.getInstanceDetails(LensSessionHandle sessionId,
SchedulerJobInstanceHandle instanceHandle)
Returns a SchedulerInstanceInfo for a given instance handle.
|
LensAPIResult<XJob> |
ScheduleResource.getJobDefinition(LensSessionHandle sessionId,
SchedulerJobHandle jobHandle)
Get XJob definition for a given job handle.
|
LensAPIResult<SchedulerJobInfo> |
ScheduleResource.getJobDetails(LensSessionHandle sessionId,
SchedulerJobHandle jobHandle)
Returns the SchedulerJobInfo of a given job handle.
|
LensAPIResult<SchedulerJobHandle> |
ScheduleResource.submitJob(LensSessionHandle sessionId,
String action,
XJob job)
Submits a job to be scheduled at later point of time or submit and schedule simultaneously.
|
LensAPIResult |
ScheduleResource.updateInstance(LensSessionHandle sessionId,
SchedulerJobInstanceHandle instanceHandle,
String action)
Updates an instance
|
LensAPIResult |
ScheduleResource.updateJob(LensSessionHandle sessionId,
SchedulerJobHandle jobHandle,
String action)
Changes the job state
|
LensAPIResult |
ScheduleResource.updateJob(LensSessionHandle sessionId,
SchedulerJobHandle jobHandle,
XJob job)
Updates job definition of an existing job.
|
Copyright © 2014–2018 Apache Software Foundation. All rights reserved.