whylogs.core.relations
#
Module Contents#
Classes#
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Generic enumeration. |
|
Functions#
|
|
|
|
|
|
|
|
|
- class whylogs.core.relations.ValueGetter#
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class whylogs.core.relations.LiteralGetter(value: Union[str, int, float])#
Bases:
ValueGetter
Helper class that provides a standard way to create an ABC using inheritance.
- class whylogs.core.relations.Relation#
Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
- no_op = 0#
- match = 1#
- fullmatch = 2#
- equal = 3#
- less = 4#
- leq = 5#
- greater = 6#
- geq = 7#
- neq = 8#
- search = 13#
- name()#
The name of the Enum member.
- value()#
The value of the Enum member.
- class whylogs.core.relations.Predicate(op: Relation = Relation.no_op, value: Union[str, int, float, ValueGetter] = 0, udf: Optional[Callable[[Any], bool]] = None, left: Optional[Predicate] = None, right: Optional[Predicate] = None, component: Optional[str] = None)#
- Parameters
- matches(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- fullmatch(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- search(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- equals(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- less_than(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- less_or_equals(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- greater_than(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- greater_or_equals(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type
- not_equal(value: Union[str, int, float, ValueGetter]) Predicate #
- Parameters
value (Union[str, int, float, ValueGetter]) –
- Return type