BooleanField

class pyatlan.model.fields.atlan_fields.BooleanField(atlan_field_name: StrictStr, boolean_field_name: StrictStr)[source]

Represents any field in Atlan that can be searched only by truthiness.

property boolean_field_name: str

Returns the name of the boolean field index for this attribute in Elastic.

Returns:

the field name for the boolean index on this attribute

bucket_by(size: int = 10, include_source_value: bool = False, nested: Dict[Any, Aggregation] | None = None, order: List[Dict[str, SortOrder]] | None = None) Aggregation

Return criteria to bucket results based on the provided field.

Parameters:
  • size – the number of buckets to include results across, defaults to 10.

  • include_source_value – whether to include the source value (True) or not (False)

  • nested – (optional) nested aggregations to include.

  • order – (optional) the order for the buckets.

Returns:

criteria to bucket results by the provided field,

across a maximum number of buckets defined by the provided size.

eq(value: StrictBool) Query[source]

Returns a query that will match all assets whose field has a value that exactly equals the provided boolean value.

Parameters:

value – the value (bool) 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

has_any_value() Query

Returns a query that will only match assets that have some non-null, non-empty value (no matter what actual value) for the field.

Returns:

a query that will only match assets that have some non-null, non-empty value for the field

property in_lineage: LineageFilterFieldBoolean

Returns a proxy which can be used a lineage filter with the appropriate subset of conditions

order(order: SortOrder = SortOrder.ASCENDING) SortItem

Returns a condition to sort results by the field, in the specified order.

Parameters:

order – in which to sort the results

Returns:

sort condition for the field, in the specified order