T
- execution class that will be returned from the querypublic static class DXSearch.FindExecutionsRequestBuilder<T extends DXExecution> extends Object
findExecutions
queries and executing them.
Obtain an instance of this class via DXSearch.findExecutions()
.
Modifier and Type | Method and Description |
---|---|
DXSearch.FindExecutionsRequestBuilder<T> |
createdAfter(Date date)
Only return executions created after the specified date.
|
DXSearch.FindExecutionsRequestBuilder<T> |
createdBefore(Date date)
Only return executions created before the specified date.
|
DXSearch.FindExecutionsResult<T> |
execute()
Executes the query.
|
DXSearch.FindExecutionsResult<T> |
execute(int pageSize)
Executes the query with the specified page size.
|
DXSearch.FindExecutionsRequestBuilder<T> |
includeDescribeOutput()
Requests the default describe data for each matching execution when the query is run.
|
DXSearch.FindExecutionsRequestBuilder<T> |
includeSubjobs(boolean includeSubjobs)
Specifies whether subjobs should be included among the results (default is true).
|
DXSearch.FindExecutionsRequestBuilder<T> |
inProject(DXContainer project)
Only returns executions in the specified project.
|
DXSearch.FindExecutionsRequestBuilder<T> |
launchedBy(String user)
Only returns executions launched by the specified user.
|
DXSearch.FindExecutionsRequestBuilder<T> |
nameMatchesExactly(String name)
Only returns executions whose names exactly equal the specified string.
|
DXSearch.FindExecutionsRequestBuilder<T> |
nameMatchesGlob(String glob)
Only returns executions whose names match the specified glob.
|
DXSearch.FindExecutionsRequestBuilder<T> |
nameMatchesRegexp(String regexp)
Only returns executions whose names match the specified regexp.
|
DXSearch.FindExecutionsRequestBuilder<T> |
nameMatchesRegexp(String regexp,
boolean caseInsensitive)
Only returns executions whose names match the specified regexp (optionally allowing the
match to be case insensitive).
|
DXSearch.FindExecutionsRequestBuilder<DXAnalysis> |
withClassAnalysis()
Only returns analyses (filters out jobs).
|
DXSearch.FindExecutionsRequestBuilder<DXJob> |
withClassJob()
Only returns jobs (filters out analyses).
|
DXSearch.FindExecutionsRequestBuilder<T> |
withExecutable(DXExecutable<?> executable)
Only return executions with the specified executable.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withIdsIn(Collection<? extends DXExecution> executions)
Only returns executions whose IDs match one of the specified executions.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withOriginJob(DXJob originJob)
Only return executions with the specified origin job.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withParentAnalysis(DXAnalysis parentAnalysis)
Only return executions with the specified parent analysis.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withParentJob(DXJob parentJob)
Only return executions with the specified parent job.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withProperties(DXSearch.PropertiesQuery propertiesQuery)
Only returns executions matching the specified properties query.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withProperty(String propertyKey)
Only returns executions where the specified property is present.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withProperty(String propertyKey,
String propertyValue)
Only returns executions where the specified property has the specified value.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withRootExecution(DXExecution rootExecution)
Only return executions with the specified root execution.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withState(AnalysisState... states)
Only returns executions in one of the specified analysis states.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withState(JobState... states)
Only returns executions in one of the specified job states.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withTag(String tag)
Only returns executions with the specified tag.
|
DXSearch.FindExecutionsRequestBuilder<T> |
withTags(DXSearch.TagsQuery tagsQuery)
Only returns executions matching the specified tags query.
|
public DXSearch.FindExecutionsRequestBuilder<T> createdAfter(Date date)
date
- earliest creation datepublic DXSearch.FindExecutionsRequestBuilder<T> createdBefore(Date date)
date
- latest creation datepublic DXSearch.FindExecutionsResult<T> execute()
public DXSearch.FindExecutionsResult<T> execute(int pageSize)
pageSize
- number of results to obtain on each requestpublic DXSearch.FindExecutionsRequestBuilder<T> includeDescribeOutput()
DXExecution.getCachedDescribe()
method can be used if, and only if, this method
is called at query time.public DXSearch.FindExecutionsRequestBuilder<T> includeSubjobs(boolean includeSubjobs)
includeSubjobs
- whether to include subjobs in the resultspublic DXSearch.FindExecutionsRequestBuilder<T> inProject(DXContainer project)
project
- project or container to search inpublic DXSearch.FindExecutionsRequestBuilder<T> launchedBy(String user)
user
- user ID, e.g. "user-flast"
public DXSearch.FindExecutionsRequestBuilder<T> nameMatchesExactly(String name)
This method may only be called once during the construction of a query, and is mutually
exclusive with nameMatchesGlob(String)
, nameMatchesRegexp(String)
, and
nameMatchesRegexp(String, boolean)
.
name
- name of executionpublic DXSearch.FindExecutionsRequestBuilder<T> nameMatchesGlob(String glob)
This method may only be called once during the construction of a query, and is mutually
exclusive with nameMatchesExactly(String)
, nameMatchesRegexp(String)
,
and nameMatchesRegexp(String, boolean)
.
glob
- shell-like pattern to be matched against execution namepublic DXSearch.FindExecutionsRequestBuilder<T> nameMatchesRegexp(String regexp)
This method may only be called once during the construction of a query, and is mutually
exclusive with nameMatchesExactly(String)
, nameMatchesGlob(String)
, and
nameMatchesRegexp(String, boolean)
.
regexp
- regexp to be matched against execution namepublic DXSearch.FindExecutionsRequestBuilder<T> nameMatchesRegexp(String regexp, boolean caseInsensitive)
This method may only be called once during the construction of a query, and is mutually
exclusive with nameMatchesExactly(String)
, nameMatchesGlob(String)
, and
nameMatchesRegexp(String)
.
regexp
- regexp to be matched against execution namecaseInsensitive
- if true, the regexp is matched case-insensitivelypublic DXSearch.FindExecutionsRequestBuilder<DXAnalysis> withClassAnalysis()
This method may only be called once during the construction of a query, and is mutually
exclusive with withClassJob()
.
public DXSearch.FindExecutionsRequestBuilder<DXJob> withClassJob()
This method may only be called once during the construction of a query, and is mutually
exclusive with withClassAnalysis()
.
public DXSearch.FindExecutionsRequestBuilder<T> withExecutable(DXExecutable<?> executable)
executable
- executablepublic DXSearch.FindExecutionsRequestBuilder<T> withIdsIn(Collection<? extends DXExecution> executions)
When used in combination with includeDescribeOutput()
you can use this to
"bulk describe" a large number of executions.
executions
- collection of executionspublic DXSearch.FindExecutionsRequestBuilder<T> withOriginJob(DXJob originJob)
originJob
- origin jobpublic DXSearch.FindExecutionsRequestBuilder<T> withParentAnalysis(DXAnalysis parentAnalysis)
parentAnalysis
- parent analysispublic DXSearch.FindExecutionsRequestBuilder<T> withParentJob(DXJob parentJob)
parentJob
- parent jobpublic DXSearch.FindExecutionsRequestBuilder<T> withProperties(DXSearch.PropertiesQuery propertiesQuery)
propertiesQuery
- properties querypublic DXSearch.FindExecutionsRequestBuilder<T> withProperty(String propertyKey)
To specify a complex query on the properties, use
withProperties(DXSearch.PropertiesQuery)
.
propertyKey
- property key that must be presentpublic DXSearch.FindExecutionsRequestBuilder<T> withProperty(String propertyKey, String propertyValue)
To specify a complex query on the properties, use
withProperties(DXSearch.PropertiesQuery)
.
propertyKey
- property keypropertyValue
- property valuepublic DXSearch.FindExecutionsRequestBuilder<T> withRootExecution(DXExecution rootExecution)
rootExecution
- root executionpublic DXSearch.FindExecutionsRequestBuilder<T> withState(AnalysisState... states)
withState(JobState...)
, the union of the selected job and analysis states
is allowed.
Note that it is possible for such a query to select jobs if the jobs are in a state that has the same name as an analysis state, e.g. DONE.
states
- analysis statespublic DXSearch.FindExecutionsRequestBuilder<T> withState(JobState... states)
withState(AnalysisState...)
, the union of the selected job and analysis states
is allowed.
Note that it is possible for such a query to select analyses if the analyses are in a state that has the same name as a job state, e.g. DONE.
states
- job statespublic DXSearch.FindExecutionsRequestBuilder<T> withTag(String tag)
To specify a complex query on the tags, use withTags(DXSearch.TagsQuery)
.
tag
- String containing a tagpublic DXSearch.FindExecutionsRequestBuilder<T> withTags(DXSearch.TagsQuery tagsQuery)
tagsQuery
- tags queryCopyright © 2023. All Rights Reserved.