sage.database.statefull package

Submodules

sage.database.statefull.hashmap_manager module

class sage.database.statefull.hashmap_manager.HashMapManager

Bases: sage.database.statefull.statefull_manager.StatefullManager

A HashMapManager stores saved plans in main memory using a simple HashMap

delete_plan(plan_id: str) → None

Delete a saved plan by ID.

Argument: ID of the saved plan to delete.

from_config()

Build a StatefullManager from a config dictionnary

get_plan(plan_id: str) → str

Get a saved plan by ID.

Argument: ID of the saved plan to retrieve.

Returns: The saved plan corresponding to the input ID.

save_plan(id: str, plan: str) → None

Store a saved plan by ID.

Args:
  • id: Unique ID associated with the saved plan.

  • plan: Plan to save.

sage.database.statefull.statefull_manager module

class sage.database.statefull.statefull_manager.StatefullManager

Bases: abc.ABC

A StatefullManager is an abstract class for storing saved SPARQL query execution plans

close() → None

Close the StatefullManager connection

abstract delete_plan(plan_id: str) → None

Delete a saved plan by ID.

Argument: ID of the saved plan to delete.

abstract from_config()

Build a StatefullManager from a config dictionnary

abstract get_plan(plan_id: str) → str

Get a saved plan by ID.

Argument: ID of the saved plan to retrieve.

Returns: The saved plan corresponding to the input ID.

open() → None

Open the StatefullManager connection

abstract save_plan(id, plan: str) → None

Store a saved plan by ID.

Args:
  • id: Unique ID associated with the saved plan.

  • plan: Plan to save.

Module contents