Class AuditSearchResponse

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

public class AuditSearchResponse extends ApiResource implements Iterable<EntityAudit>
Captures the response from a search against Atlan's activity log.
See Also:
  • Constructor Details

    • AuditSearchResponse

      public AuditSearchResponse()
  • Method Details

    • getNextPage

      public AuditSearchResponse 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<EntityAudit> 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<EntityAudit> iterator()
      Specified by:
      iterator in interface Iterable<EntityAudit>
    • spliterator

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

      public Stream<EntityAudit> 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<EntityAudit> 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 AuditSearchRequest getRequest()
      Request used to produce this audit search response.
    • getEntityAudits

      public List<EntityAudit> getEntityAudits()
      List of results from the search.
    • getAggregations

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

      public Long getCount()
      Number of results returned in this response.
    • getTotalCount

      public Long getTotalCount()
      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(AuditSearchRequest request)
      Request used to produce this audit search response.