Package com.atlan.model.search
Class FluentSearch.FluentSearchBuilder<C extends FluentSearch,B extends FluentSearch.FluentSearchBuilder<C,B>>
java.lang.Object
com.atlan.model.search.CompoundQuery.CompoundQueryBuilder<C,B>
com.atlan.model.search.FluentSearch.FluentSearchBuilder<C,B>
- Enclosing class:
- FluentSearch
public abstract static class FluentSearch.FluentSearchBuilder<C extends FluentSearch,B extends FluentSearch.FluentSearchBuilder<C,B>>
extends CompoundQuery.CompoundQueryBuilder<C,B>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_includeOnRelations
(String _includeOnRelations) _includeOnResults
(String _includeOnResults) _includesOnRelations
(Collection<? extends String> _includesOnRelations) _includesOnResults
(Collection<? extends String> _includesOnResults) aggregate
(String aggregateKey, co.elastic.clients.elasticsearch._types.aggregations.Aggregation aggregateValue) aggregations
(Map<? extends String, ? extends co.elastic.clients.elasticsearch._types.aggregations.Aggregation> aggregations) abstract C
build()
long
count()
Return the total number of assets that will match the supplied criteria, using the most minimal query possible (retrieves minimal data).includeOnRelations
(AtlanField includeOnRelations) includeOnResults
(AtlanField includeOnResults) includeRelationshipAttributes
(Boolean includeRelationshipAttributes) Whether to include relationship attributes on each relationship in the results.includesOnRelations
(Collection<? extends AtlanField> includesOnRelations) includesOnResults
(Collection<? extends AtlanField> includesOnResults) Number of results to retrieve per underlying API request.protected abstract B
self()
sort
(co.elastic.clients.elasticsearch._types.SortOptions sort) sorts
(Collection<? extends co.elastic.clients.elasticsearch._types.SortOptions> sorts) 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.Translate the Atlan fluent search into an Atlan search request.Translate the Atlan fluent search into an Atlan search request builder.toString()
Methods inherited from class com.atlan.model.search.CompoundQuery.CompoundQueryBuilder
active, archived, clearWhereNots, clearWheres, clearWhereSomes, client, minSomes, tagged, tagged, taggedWithValue, taggedWithValue, where, whereNot, whereNots, wheres, whereSome, whereSomes, withLineage, withoutLineage
-
Constructor Details
-
FluentSearchBuilder
public FluentSearchBuilder()
-
-
Method Details
-
toRequestBuilder
Translate the Atlan fluent search into an Atlan search request builder.- Returns:
- an Atlan search request builder that encapsulates the fluent search
-
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
-
sort
-
sorts
-
clearSorts
-
aggregate
-
aggregations
-
clearAggregations
-
pageSize
Number of results to retrieve per underlying API request.- Returns:
this
.
-
includeOnResults
-
includesOnResults
-
clearIncludesOnResults
-
_includeOnResults
-
_includesOnResults
-
clear_includesOnResults
-
includeOnRelations
-
includesOnRelations
-
clearIncludesOnRelations
-
_includeOnRelations
-
_includesOnRelations
-
clear_includesOnRelations
-
includeRelationshipAttributes
Whether to include relationship attributes on each relationship in the results.- Returns:
this
.
-
self
- Specified by:
self
in classCompoundQuery.CompoundQueryBuilder<C extends FluentSearch,
B extends FluentSearch.FluentSearchBuilder<C, B>>
-
build
- Specified by:
build
in classCompoundQuery.CompoundQueryBuilder<C extends FluentSearch,
B extends FluentSearch.FluentSearchBuilder<C, B>>
-
toString
- Overrides:
toString
in classCompoundQuery.CompoundQueryBuilder<C extends FluentSearch,
B extends FluentSearch.FluentSearchBuilder<C, B>>
-