Package com.atlan.model.search
Class CompoundQuery.CompoundQueryBuilder<C extends CompoundQuery,B extends CompoundQuery.CompoundQueryBuilder<C,B>>
java.lang.Object
com.atlan.model.search.CompoundQuery.CompoundQueryBuilder<C,B>
- Direct Known Subclasses:
AuditSearch.AuditSearchBuilder
,FluentSearch.FluentSearchBuilder
- Enclosing class:
- CompoundQuery
public abstract static class CompoundQuery.CompoundQueryBuilder<C extends CompoundQuery,B extends CompoundQuery.CompoundQueryBuilder<C,B>>
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactive()
Adds a condition that matches only active assets.archived()
Adds a condition that matches only archived assets.abstract C
build()
client
(AtlanClient client) Client through which to run the search.minSomes
(int minSomes) The minimum number of criteria in the "whereSomes" that must match on each search result.protected abstract B
self()
tagged
(boolean directly) Returns a query that will only match assets that have at least one Atlan tag assigned.tagged
(Collection<String> atlanTagNames) Returns a query that will only match assets that have at least one of the Atlan tags provided.taggedWithValue
(String atlanTagName, String value) Returns a query that will match assets that have a specific value for the specified tag (for source-synced tags).taggedWithValue
(String atlanTagName, String value, boolean directly) Returns a query that will match assets that have a specific value for the specified tag (for source-synced tags).toString()
where
(co.elastic.clients.elasticsearch._types.query_dsl.Query where) whereNot
(co.elastic.clients.elasticsearch._types.query_dsl.Query whereNot) whereNots
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereNots) wheres
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> wheres) whereSome
(co.elastic.clients.elasticsearch._types.query_dsl.Query whereSome) whereSomes
(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereSomes) Adds a condition that matches only assets with lineage.Adds a condition that matches only assets without lineage.
-
Constructor Details
-
CompoundQueryBuilder
public CompoundQueryBuilder()
-
-
Method Details
-
tagged
Returns a query that will only match assets that have at least one of the Atlan tags provided. This will match irrespective of the Atlan tag being directly applied to the asset, or if it was propagated to the asset.- Parameters:
atlanTagNames
- human-readable names of the Atlan tags- Returns:
- a query that will only match assets that have at least one of the Atlan tags provided
- Throws:
AtlanException
- on any error communicating with the API to refresh the Atlan tag cache
-
tagged
Returns a query that will only match assets that have at least one Atlan tag assigned.- Parameters:
directly
- when true, the asset must have at least one Atlan tag directly assigned (otherwise even propagated tags will suffice)- Returns:
- a query that will only match assets that have at least one Atlan tag directly assigned
-
taggedWithValue
Returns a query that will match assets that have a specific value for the specified tag (for source-synced tags).- Parameters:
atlanTagName
- human-readable name of the Atlan tagvalue
- the tag should have to match the query- Returns:
- a query that will only match assets that have a particular value assigned for the given Atlan tag
- Throws:
AtlanException
- on any error communicating with the API to refresh the Atlan tag cache
-
taggedWithValue
Returns a query that will match assets that have a specific value for the specified tag (for source-synced tags).- Parameters:
atlanTagName
- human-readable name of the Atlan tagvalue
- the tag should have to match the querydirectly
- when true, the asset must have the tag and value directly assigned (otherwise even propagated tags with the value will suffice)- Returns:
- a query that will only match assets that have a particular value assigned for the given Atlan tag
- Throws:
AtlanException
- on any error communicating with the API to refresh the Atlan tag cache
-
active
Adds a condition that matches only active assets. Note: this is mutually-exclusive witharchived()
-- if you want both, specify neither.- Returns:
- the search builder with a condition that will only match assets that are active
-
archived
Adds a condition that matches only archived assets. Note: this is mutually-exclusive withactive()
-- if you want both, specify neither.- Returns:
- the search builder with a condition that will only match assets that are active
-
withLineage
Adds a condition that matches only assets with lineage. Note: this is mutually-exclusive withwithoutLineage()
-- if you want both, specify neither.- Returns:
- the search builder with a condition that will only match assets that have lineage
-
withoutLineage
Adds a condition that matches only assets without lineage. Note: this is mutually-exclusive withwithLineage()
-- if you want both, specify neither.- Returns:
- the search builder with a condition that will only match assets that do NOT have lineage
-
client
Client through which to run the search.- Returns:
this
.
-
where
-
wheres
public B wheres(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> wheres) -
clearWheres
-
whereNot
-
whereNots
public B whereNots(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereNots) -
clearWhereNots
-
whereSome
-
whereSomes
public B whereSomes(Collection<? extends co.elastic.clients.elasticsearch._types.query_dsl.Query> whereSomes) -
clearWhereSomes
-
minSomes
The minimum number of criteria in the "whereSomes" that must match on each search result. (Defaults to 1.)- Returns:
this
.
-
self
-
build
-
toString
-