Package com.atlan.model.tasks
Class FluentTasks.FluentTasksBuilder
java.lang.Object
com.atlan.model.tasks.FluentTasks.FluentTasksBuilder
- Enclosing class:
- FluentTasks
-
Method Summary
Modifier and TypeMethodDescriptionaggregate
(String aggregateKey, co.elastic.clients.elasticsearch._types.aggregations.Aggregation aggregateValue) aggregations
(Map<? extends String, ? extends co.elastic.clients.elasticsearch._types.aggregations.Aggregation> aggregations) build()
client
(AtlanClient client) Client through which to retrieve the assets.long
count()
Return the total number of assets that will match the supplied criteria, using the most minimal query possible (retrieves minimal data).minSomes
(int minSomes) The minimum number of criteria in the "whereSomes" that must match on each search result.Number of results to retrieve per underlying API request.sort
(co.elastic.clients.elasticsearch._types.SortOptions sort) sorts
(Collection<? extends co.elastic.clients.elasticsearch._types.SortOptions> sorts) stream()
Run the fluent search to retrieve assets that match the supplied criteria.stream
(boolean parallel) Run the fluent search to retrieve assets that match the supplied criteria.Translate the Atlan fluent search into an Atlan search request.Translate the Atlan fluent search into an Atlan search request builder.toString()
where
(co.elastic.clients.elasticsearch._types.query_dsl.Query where) whereNot
(co.elastic.clients.elasticsearch._types.query_dsl.Query whereNot) whereNots
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereNots) wheres
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> wheres) whereSome
(co.elastic.clients.elasticsearch._types.query_dsl.Query whereSome) whereSomes
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereSomes)
-
Method Details
-
toRequestBuilder
Translate the Atlan fluent search into an Atlan search request builder.- Returns:
- an Atlan search request builder that encapsulates the fluent search
-
toRequest
Translate the Atlan fluent search into an Atlan search request.- Returns:
- an Atlan search request that encapsulates the fluent search
-
count
Return the total number of assets that will match the supplied criteria, using the most minimal query possible (retrieves minimal data).- Returns:
- the count of assets that will match the supplied criteria
- Throws:
AtlanException
- on any issues interacting with the Atlan APIs
-
stream
Run the fluent search to retrieve assets that match the supplied criteria.- Returns:
- a stream of assets that match the specified criteria, lazily-fetched
- Throws:
AtlanException
- on any issues interacting with the Atlan APIs
-
stream
Run the fluent search to retrieve assets that match the supplied criteria.- Parameters:
parallel
- if true, returns a parallel stream- Returns:
- a stream of assets that match the specified criteria, lazily-fetched
- Throws:
AtlanException
- on any issues interacting with the Atlan APIs
-
client
Client through which to retrieve the assets.- Returns:
this
.
-
sort
public FluentTasks.FluentTasksBuilder sort(co.elastic.clients.elasticsearch._types.SortOptions sort) -
sorts
public FluentTasks.FluentTasksBuilder sorts(Collection<? extends co.elastic.clients.elasticsearch._types.SortOptions> sorts) -
clearSorts
-
aggregate
public FluentTasks.FluentTasksBuilder aggregate(String aggregateKey, co.elastic.clients.elasticsearch._types.aggregations.Aggregation aggregateValue) -
aggregations
public FluentTasks.FluentTasksBuilder aggregations(Map<? extends String, ? extends co.elastic.clients.elasticsearch._types.aggregations.Aggregation> aggregations) -
clearAggregations
-
pageSize
Number of results to retrieve per underlying API request.- Returns:
this
.
-
where
public FluentTasks.FluentTasksBuilder where(co.elastic.clients.elasticsearch._types.query_dsl.Query where) -
wheres
public FluentTasks.FluentTasksBuilder wheres(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> wheres) -
clearWheres
-
whereNot
public FluentTasks.FluentTasksBuilder whereNot(co.elastic.clients.elasticsearch._types.query_dsl.Query whereNot) -
whereNots
public FluentTasks.FluentTasksBuilder whereNots(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereNots) -
clearWhereNots
-
whereSome
public FluentTasks.FluentTasksBuilder whereSome(co.elastic.clients.elasticsearch._types.query_dsl.Query whereSome) -
whereSomes
public FluentTasks.FluentTasksBuilder whereSomes(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereSomes) -
clearWhereSomes
-
minSomes
The minimum number of criteria in the "whereSomes" that must match on each search result. (Defaults to 1.)- Returns:
this
.
-
build
-
toString
-