Containers

Base Container

class udao.data.containers.base_container.BaseContainer

Bases: ABC

Base class for containers. Containers are used to store and retrieve data from a dataset, based on a key.

Query Structure Container

class udao.data.containers.query_structure_container.QueryStructureContainer(graph_features: DataFrame, template_plans: Dict[int, QueryPlanStructure], key_to_template: Dict[str, int])

Bases: BaseContainer

Container for the query structure and features of a query plan.

graph_features: DataFrame

Stores the features of the operations in the query plan.

key_to_template: Dict[str, int]

Link a key to a template id.

template_plans: Dict[int, QueryPlanStructure]

Link a template id to a QueryPlanStructure

Dataframe Container

class udao.data.containers.tabular_container.TabularContainer(data: DataFrame)

Bases: BaseContainer

Container for tabular data, stored in DataFrame format.