Package com.atlan.model.tasks
Class TaskSearchResponse
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiResource
com.atlan.model.tasks.TaskSearchResponse
- All Implemented Interfaces:
AtlanResponseInterface
,Serializable
,Iterable<AtlanTask>
Captures the response from a search against Atlan's task queue.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.net.ApiResource
ApiResource.RequestMethod
Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.net.ApiResource
CHARSET
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Map of results for the requested aggregations.Total number of results.Connectivity to the Atlan tenant where the search was run.Retrieve the next page of results from this response.Request used to produce this task queue response.getSpecificPage
(int offset, int pageSize) Retrieve a specific page of results using the same query used to produce this response.getTasks()
List of results from the search.int
hashCode()
iterator()
Stream the results in parallel across all pages (may do more than limited to in a request).void
setClient
(AtlanClient client) Connectivity to the Atlan tenant where the search was run.void
setRequest
(TaskSearchRequest request) Request used to produce this task queue response.stream()
Stream the results (lazily) for processing without needing to manually manage paging.toString()
Methods inherited from class com.atlan.net.ApiResource
checkNullTypedParams, createQueryString, createQueryString, getLastResponse, getRawJsonObject, request, request, request, request, request, request, request, requestPlainText, requestPlainText, setLastResponse, urlEncode, urlEncodeId
Methods inherited from class com.atlan.model.core.AtlanObject
setRawJsonObject, toJson
-
Constructor Details
-
TaskSearchResponse
public TaskSearchResponse()
-
-
Method Details
-
getNextPage
Retrieve the next page of results from this response.- Returns:
- next page of results from this response
- Throws:
AtlanException
- on any API interaction problem
-
getSpecificPage
Retrieve a specific page of results using the same query used to produce this response.- Parameters:
offset
- starting point for the specific pagepageSize
- maximum number of results beyond the starting point to retrieve- Returns:
- specific page of results from this response
- Throws:
AtlanException
- on any API interaction problem
-
iterator
-
spliterator
- Specified by:
spliterator
in interfaceIterable<AtlanTask>
-
stream
Stream the results (lazily) for processing without needing to manually manage paging.- Returns:
- a lazily-loaded stream of results from the search
-
parallelStream
Stream the results in parallel across all pages (may do more than limited to in a request).- Returns:
- a lazily-loaded stream of results from the search
-
getClient
Connectivity to the Atlan tenant where the search was run. -
getRequest
Request used to produce this task queue response. -
getTasks
List of results from the search. -
getAggregations
Map of results for the requested aggregations. -
getApproximateCount
Total number of results. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classApiResource
-
setClient
Connectivity to the Atlan tenant where the search was run. -
setRequest
Request used to produce this task queue response.
-