Package com.atlan.model.tasks
Class FluentTasks
java.lang.Object
com.atlan.model.tasks.FluentTasks
Search abstraction mechanism, to simplify the most common searches against Atlan task queue
(removing the need to understand the guts of Elastic).
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IndexSearchDSL.IndexSearchDSLBuilder<?,
?> _dsl()
Translate the Atlan fluent search into an Atlan search DSL builder.protected TaskSearchRequest.TaskSearchRequestBuilder<?,
?> Translate the Atlan fluent search into an Atlan search request builder.builder
(AtlanClient client) Build a fluent search against the provided Atlan tenant.long
count()
Return the total number of assets that will match the supplied criteria, using the most minimal query possible (retrieves minimal data).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.co.elastic.clients.elasticsearch._types.query_dsl.Query
toQuery()
Translate the Atlan compound query into an Elastic Query object.Translate the Atlan fluent search into an Atlan search request.
-
Method Details
-
builder
Build a fluent search against the provided Atlan tenant.- Parameters:
client
- connectivity to an Atlan tenant- Returns:
- the start of a fluent search against the tenant
-
toQuery
public co.elastic.clients.elasticsearch._types.query_dsl.Query toQuery()Translate the Atlan compound query into an Elastic Query object.- Returns:
- an Elastic Query object that represents the compound query
-
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
-
_dsl
Translate the Atlan fluent search into an Atlan search DSL builder.- Returns:
- an Atlan search DSL builder that encapsulates the fluent search
-
_requestBuilder
Translate the Atlan fluent search into an Atlan search request builder.- Returns:
- an Atlan search request builder that encapsulates the fluent search
-
_internal
-