Class DiscoveryFilterField

java.lang.Object
com.atlan.model.discovery.DiscoveryFilterField
Direct Known Subclasses:
BooleanFilterField, DateFilterField, EnumFilterField, NumericFilterField, StrictEqualityFilterField

public class DiscoveryFilterField extends Object
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 Details

    • fields

      protected final List<String> fields
      Field on which filtering should be applied.
    • filerKey

      protected final String filerKey
      Singular field on which to index the filter map.
  • Constructor Details

    • DiscoveryFilterField

      public DiscoveryFilterField(String field)
      Default constructor
      Parameters:
      field - name of the field to filter by (singular)
    • DiscoveryFilterField

      public DiscoveryFilterField(List<String> fields)
      Default constructor
      Parameters:
      fields - names of the fields to filter by (multiple)
  • Method Details

    • hasAnyValue

      public DiscoveryFilter 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

      public DiscoveryFilter 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

      protected DiscoveryFilter build(String op, Object value)
      Utility method to build up a lineage filter from provided conditions.
      Parameters:
      op - operator to compare the field and value
      value - to compare the field's value with
      Returns:
      the lineage filter with the provided conditions
    • getFields

      public List<String> getFields()
      Field on which filtering should be applied.
    • getFilerKey

      public String getFilerKey()
      Singular field on which to index the filter map.