Class TaskSearchResponse

All Implemented Interfaces:
AtlanResponseInterface, Serializable, Iterable<AtlanTask>

public class TaskSearchResponse extends ApiResource implements Iterable<AtlanTask>
Captures the response from a search against Atlan's task queue.
See Also:
  • Constructor Details

    • TaskSearchResponse

      public TaskSearchResponse()
  • Method Details

    • getNextPage

      public TaskSearchResponse getNextPage() throws AtlanException
      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

      public List<AtlanTask> getSpecificPage(int offset, int pageSize) throws AtlanException
      Retrieve a specific page of results using the same query used to produce this response.
      Parameters:
      offset - starting point for the specific page
      pageSize - 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

      public Iterator<AtlanTask> iterator()
      Specified by:
      iterator in interface Iterable<AtlanTask>
    • spliterator

      public Spliterator<AtlanTask> spliterator()
      Specified by:
      spliterator in interface Iterable<AtlanTask>
    • stream

      public Stream<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

      public Stream<AtlanTask> 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

      public AtlanClient getClient()
      Connectivity to the Atlan tenant where the search was run.
    • getRequest

      public TaskSearchRequest getRequest()
      Request used to produce this task queue response.
    • getTasks

      public List<AtlanTask> getTasks()
      List of results from the search.
    • getAggregations

      public Map<String,AggregationResult> getAggregations()
      Map of results for the requested aggregations.
    • getApproximateCount

      public Long getApproximateCount()
      Total number of results.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AtlanObject
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AtlanObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AtlanObject
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class ApiResource
    • setClient

      public void setClient(AtlanClient client)
      Connectivity to the Atlan tenant where the search was run.
    • setRequest

      public void setRequest(TaskSearchRequest request)
      Request used to produce this task queue response.