architxt.bucket#
Classes
A scalable, persistent, set-like container for |
- class architxt.bucket.TreeBucket[source]#
Bases:
ABC,MutableSet,CollectionA scalable, persistent, set-like container for
Tree.The
TreeBucketbehaves like a mutable set and provides persistent storage. It is designed to handle large collections of trees efficiently, supporting standard set operations and transactional updates.Transaction Management
Bucket automatically handles transactions when adding or removing
Treefrom the bucket.If a
Treeis modified after being added to the bucket, you must callcommit()to persist those changes.
Available Implementations
classDiagram ABC <|-- TreeBucket Collection <|-- Set Collection <|-- TreeBucket Container <|-- Collection Iterable <|-- Collection MutableSet <|-- TreeBucket Set <|-- MutableSet Sized <|-- Collection- async async_update(trees, batch_size=BATCH_SIZE)[source]#
Asynchronously add multiple
Treeto the bucket.This method mirrors the behavior of
update()but supports asynchronous iteration. Internally, it delegates each chunk to a background thread.
- abstractmethod close()[source]#
Close the underlying storage and release any associated resources.
- Return type:
Modules