Package com.atlan.model.search
Class AuditSearchResponse
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiResource
com.atlan.model.search.AuditSearchResponse
- All Implemented Interfaces:
AtlanResponseInterface
,Serializable
,Iterable<EntityAudit>
Captures the response from a search against Atlan's activity log.
- 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 TypeMethodDescriptionReturns an iterator over the elements of the index search, lazily paged, but in such a way that they can be iterated through in bulk (10,000's of results or more).Stream a large number of results (lazily) for processing without needing to manually manage paging.protected boolean
boolean
Map of results for the requested aggregations.Connectivity to the Atlan tenant where the search was run.getCount()
Number of results returned in this response.List of results from the search.protected AuditSearchResponse
Retrieve the next page of results from this response, using bulk-oriented paging.Retrieve the next page of results from this response.Request used to produce this audit search response.getSpecificPage
(int offset, int pageSize) Retrieve a specific page of results using the same query used to produce this response.Total number of results.int
hashCode()
static boolean
hasUserRequestedSort
(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Indicates whether the sort options contain any user-requested sorting (true) or not (false).iterator()
Stream the results in parallel across all pages (may do more than limited to in a request).static boolean
presortedByTimestamp
(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Indicates whether the sort options prioritize creation-time in ascending order as the first sorting key (true) or anything else (false).void
setClient
(AtlanClient client) Connectivity to the Atlan tenant where the search was run.void
setRequest
(AuditSearchRequest request) Request used to produce this audit search response.static List<co.elastic.clients.elasticsearch._types.SortOptions>
sortByTimestampFirst
(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Rewrites the sorting options to ensure that sorting by creation time, ascending, is the top priority.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
-
AuditSearchResponse
public AuditSearchResponse()
-
-
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
-
getNextBulkPage
Retrieve the next page of results from this response, using bulk-oriented paging.- Returns:
- next page of results from this response
- Throws:
AtlanException
- on any API interaction problem
-
iterator
- Specified by:
iterator
in interfaceIterable<EntityAudit>
-
biterator
Returns an iterator over the elements of the index search, lazily paged, but in such a way that they can be iterated through in bulk (10,000's of results or more). Note: this will reorder the results and will NOT retain the sort ordering you have specified (if any). (Uses offset-limited sequential paging, to avoid large offsets that effectively need to re-retrieve many large numbers of previous pages' results.)- Returns:
- iterator through the audit entries in the search results
-
spliterator
- Specified by:
spliterator
in interfaceIterable<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
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
-
bulkStream
Stream a large number of results (lazily) for processing without needing to manually manage paging. Note: this will reorder the results in order to iterate through a large number (more than 10,000) results, so any sort ordering you have specified may be ignored.- Returns:
- a lazily-loaded stream of results from the search
-
presortedByTimestamp
public static boolean presortedByTimestamp(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Indicates whether the sort options prioritize creation-time in ascending order as the first sorting key (true) or anything else (false).- Parameters:
sort
- list of sorting options- Returns:
- true if the sorting options have creation time, ascending as the first option
-
hasUserRequestedSort
public static boolean hasUserRequestedSort(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Indicates whether the sort options contain any user-requested sorting (true) or not (false).- Parameters:
sort
- list of sorting options- Returns:
- true if the sorting options have any user-requested sorting
-
sortByTimestampFirst
public static List<co.elastic.clients.elasticsearch._types.SortOptions> sortByTimestampFirst(List<co.elastic.clients.elasticsearch._types.SortOptions> sort) Rewrites the sorting options to ensure that sorting by creation time, ascending, is the top priority. Adds this condition if it does not already exist, or moves it up to the top sorting priority if it does already exist in the list.- Parameters:
sort
- list of sorting options- Returns:
- rewritten sorting options, making sorting by creation time in ascending order the top priority
-
getClient
Connectivity to the Atlan tenant where the search was run. -
getRequest
Request used to produce this audit search response. -
getEntityAudits
List of results from the search. -
getAggregations
Map of results for the requested aggregations. -
getCount
Number of results returned in this response. -
getTotalCount
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 audit search response.
-