Package com.atlan.model.discovery
Class DiscoveryFilterField
java.lang.Object
com.atlan.model.discovery.DiscoveryFilterField
- Direct Known Subclasses:
BooleanFilterField
,DateFilterField
,EnumFilterField
,NumericFilterField
,StrictEqualityFilterField
Class used to provide a proxy to building up a linkable query filter with the appropriate
subset of conditions available for a given field (property).
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDiscoveryFilterField
(String field) Default constructorDiscoveryFilterField
(List<String> fields) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected DiscoveryFilter
Utility method to build up a lineage filter from provided conditions.Field on which filtering should be applied.Singular field on which to index the filter map.Returns a filter that will match all assets whose provided field has any value at all (non-null).Returns a filter that will match all assets whose provided field has no value at all (is null).
-
Field Details
-
fields
Field on which filtering should be applied. -
filerKey
Singular field on which to index the filter map.
-
-
Constructor Details
-
DiscoveryFilterField
Default constructor- Parameters:
field
- name of the field to filter by (singular)
-
DiscoveryFilterField
Default constructor- Parameters:
fields
- names of the fields to filter by (multiple)
-
-
Method Details
-
hasAnyValue
Returns a filter that will match all assets whose provided field has any value at all (non-null).- Returns:
- a filter that will only match assets that have some (non-null) value for the field
-
hasNoValue
Returns a filter that will match all assets whose provided field has no value at all (is null).- Returns:
- a filter that will only match assets that have no value at all for the field (null)
-
build
Utility method to build up a lineage filter from provided conditions.- Parameters:
op
- operator to compare the field and valuevalue
- to compare the field's value with- Returns:
- the lineage filter with the provided conditions
-
getFields
Field on which filtering should be applied. -
getFilerKey
Singular field on which to index the filter map.
-