public final class DXAnalysis extends DXExecution
| Modifier and Type | Class and Description |
|---|---|
static class |
DXAnalysis.Describe
Contains metadata about an analysis.
|
cachedDescribe| Modifier and Type | Method and Description |
|---|---|
DXAnalysis.Describe |
describe()
Obtains metadata about the execution.
|
DXAnalysis.Describe |
getCachedDescribe()
Returns metadata about the data object, like
DXExecution.describe(), but without making an API
call. |
static DXAnalysis |
getInstance(String analysisId)
Returns a
DXAnalysis representing the specified analysis. |
static DXAnalysis |
getInstanceWithEnvironment(String analysisId,
DXEnvironment env)
Returns a
DXAnalysis representing the specified analysis using the specified
environment. |
<T> T |
getOutput(Class<T> outputClass)
Returns the output of the execution, deserialized to the specified class.
|
void |
terminate()
Terminates the execution.
|
DXAnalysis |
waitUntilDone()
Waits until the analysis has successfully completed and is in the DONE state.
|
checkCachedDescribeAvailableapiCallOnObject, apiCallOnObject, equals, getId, hashCode, toStringpublic static DXAnalysis getInstance(String analysisId)
DXAnalysis representing the specified analysis.analysisId - Analysis ID, of the form "analysis-xxxx"DXAnalysisNullPointerException - If analysisId is nullpublic static DXAnalysis getInstanceWithEnvironment(String analysisId, DXEnvironment env)
DXAnalysis representing the specified analysis using the specified
environment.analysisId - Analysis ID, of the form "analysis-xxxx"env - environment to use for making subsequent API callsDXAnalysisNullPointerException - If analysisId or env is nullpublic DXAnalysis.Describe describe()
DXExecutiondescribe in class DXExecutionDescribe containing execution metadatapublic DXAnalysis.Describe getCachedDescribe()
DXExecutionDXExecution.describe(), but without making an API
call.
This cached describe info is only available if this object appears in the result of a
DXSearch.findExecutions() call that specified
DXSearch.FindExecutionsRequestBuilder.includeDescribeOutput(). The describe info that
is returned reflects the state of the object at the time that the search was performed.
getCachedDescribe in class DXExecutionDescribe containing the execution's metadatapublic <T> T getOutput(Class<T> outputClass) throws IllegalStateException
DXExecutiongetOutput in class DXExecutionoutputClass - class to deserialize toIllegalStateException - if the execution is not in the DONE state.public void terminate()
DXExecutionterminate in class DXExecutionpublic DXAnalysis waitUntilDone() throws IllegalStateException
waitUntilDone in class DXExecutionIllegalStateException - if the analysis reaches the FAILED or TERMINATED stateCopyright © 2023. All Rights Reserved.