concepts.pdsketch.crow.crow_state.TotallyOrderedPlan#

class TotallyOrderedPlan[source]#

Bases: object

A totally ordered plan sequence.

Methods

exclude(index)

Exclude the given index from the sequence; return a new sequence.

gen_string()

Generate the string representation of the plan.

Attributes

sequence

The sequence of the plan.

is_ordered

Whether the sequence is ordered.

__init__(sequence, is_ordered=True)[source]#

Initialize the totally ordered plan sequence.

Parameters:
__len__()[source]#
__new__(**kwargs)#
exclude(index)[source]#

Exclude the given index from the sequence; return a new sequence.

Parameters:

index (int) –

gen_string()[source]#

Generate the string representation of the plan.

is_ordered: bool#

Whether the sequence is ordered. If it’s not ordered, then the sequence is treated as a set.

sequence: Tuple[ValueOutputExpression, ...]#

The sequence of the plan.