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.
|
checkCachedDescribeAvailable
apiCallOnObject, apiCallOnObject, equals, getId, hashCode, toString
public static DXAnalysis getInstance(String analysisId)
DXAnalysis
representing the specified analysis.analysisId
- Analysis ID, of the form "analysis-xxxx"
DXAnalysis
NullPointerException
- 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 callsDXAnalysis
NullPointerException
- If analysisId
or env
is nullpublic DXAnalysis.Describe describe()
DXExecution
describe
in class DXExecution
Describe
containing execution metadatapublic DXAnalysis.Describe getCachedDescribe()
DXExecution
DXExecution.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 DXExecution
Describe
containing the execution's metadatapublic <T> T getOutput(Class<T> outputClass) throws IllegalStateException
DXExecution
getOutput
in class DXExecution
outputClass
- class to deserialize toIllegalStateException
- if the execution is not in the DONE state.public void terminate()
DXExecution
terminate
in class DXExecution
public DXAnalysis waitUntilDone() throws IllegalStateException
waitUntilDone
in class DXExecution
IllegalStateException
- if the analysis reaches the FAILED or TERMINATED stateCopyright © 2023. All Rights Reserved.