Class BooleanField

All Implemented Interfaces:
IBooleanSearchable, ISearchable

public class BooleanField extends SearchableField implements IBooleanSearchable
Represents any field in Atlan that can be searched only by truthiness.
  • Field Details

  • Constructor Details

    • BooleanField

      public BooleanField(String atlan, String bool)
      Default constructor.
      Parameters:
      atlan - name of the attribute in the metastore
      bool - name of the boolean field in the search index
  • Method Details

    • getBooleanFieldName

      public String getBooleanFieldName()
      Returns the name of the boolean field index for this attribute in Elastic.
      Specified by:
      getBooleanFieldName in interface IBooleanSearchable
      Returns:
      the field name for the boolean index on this attribute
    • eq

      public co.elastic.clients.elasticsearch._types.query_dsl.Query eq(boolean value)
      Returns a query that will match all assets whose provided field has a value that exactly equals the provided boolean value.
      Specified by:
      eq in interface IBooleanSearchable
      Parameters:
      value - the value (boolean) to check the field's value is exactly equal to
      Returns:
      a query that will only match assets whose value for the field is exactly equal to the boolean value provided