flytekit.models.core.condition
Directory
Classes
Class | Description |
---|---|
BooleanExpression |
|
ComparisonExpression |
|
ConjunctionExpression |
|
Operand |
flytekit.models.core.condition.BooleanExpression
class BooleanExpression(
conjunction,
comparison,
)
Defines a boolean expression tree. It can be a simple or a conjunction expression. Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
Parameter | Type |
---|---|
conjunction |
|
comparison |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
pb2_object,
)
Parameter | Type |
---|---|
pb2_object |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
:rtype: Text
to_flyte_idl()
def to_flyte_idl()
:rtype: flyteidl.core.condition_pb2.BooleanExpression
verbose_string()
def verbose_string()
:rtype: Text
Properties
Property | Type | Description |
---|---|---|
comparison |
Comparison expression or None if not set. :rtype: ComparisonExpression |
|
conjunction |
Conjunction expression or None if not set. :rtype: ConjunctionExpression |
|
is_empty |
flytekit.models.core.condition.ComparisonExpression
class ComparisonExpression(
operator,
left_value,
right_value,
)
Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. Each expression results in a boolean result.
Parameter | Type |
---|---|
operator |
|
left_value |
|
right_value |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
pb2_object,
)
Parameter | Type |
---|---|
pb2_object |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
:rtype: Text
to_flyte_idl()
def to_flyte_idl()
:rtype: flyteidl.core.condition_pb2.ComparisonExpression
verbose_string()
def verbose_string()
:rtype: Text
Properties
Property | Type | Description |
---|---|---|
is_empty |
||
left_value |
Gets the left value for the comparison expression. :rtype: Operand |
|
operator |
Gets the operator representing this comparison expression. :rtype: ComparisonExpression.Operator |
|
right_value |
Gets the right value for the comparison expression. :rtype: Operand |
flytekit.models.core.condition.ConjunctionExpression
class ConjunctionExpression(
operator,
left_expression,
right_expression,
)
Defines a conjunction expression of two boolean expressions.
Parameter | Type |
---|---|
operator |
|
left_expression |
|
right_expression |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
pb2_object,
)
Parameter | Type |
---|---|
pb2_object |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
:rtype: Text
to_flyte_idl()
def to_flyte_idl()
:rtype: flyteidl.core.condition_pb2.ConjunctionExpression
verbose_string()
def verbose_string()
:rtype: Text
Properties
Property | Type | Description |
---|---|---|
is_empty |
||
left_expression |
Gets the left value for the conjunction expression. :rtype: Operand |
|
operator |
Gets the operator representing this conjunction expression. :rtype: ConjunctionExpression.LogicalOperator |
|
right_expression |
Gets the right value for the conjunction expression. :rtype: Operand |
flytekit.models.core.condition.Operand
class Operand(
primitive,
var,
scalar,
)
Defines an operand to a comparison expression.
Parameter | Type |
---|---|
primitive |
|
var |
|
scalar |
Methods
Method | Description |
---|---|
from_flyte_idl() |
|
serialize_to_string() |
|
short_string() |
:rtype: Text. |
to_flyte_idl() |
:rtype: flyteidl. |
verbose_string() |
:rtype: Text. |
from_flyte_idl()
def from_flyte_idl(
pb2_object,
)
Parameter | Type |
---|---|
pb2_object |
serialize_to_string()
def serialize_to_string()
short_string()
def short_string()
:rtype: Text
to_flyte_idl()
def to_flyte_idl()
:rtype: flyteidl.core.condition_pb2.Operand
verbose_string()
def verbose_string()
:rtype: Text
Properties
Property | Type | Description |
---|---|---|
is_empty |
||
primitive |
:rtype: flytekit.models.literals.Primitive |
|
scalar |
:rtype: flytekit.models.literals.Scalar |
|
var |
:rtype: Text |