collections.eventindex¶
EventIndex ¶
Bases: SlottedDict[Event]
Index object through which events can be accessed.
This is a quite inefficient implementation, intended to be temporary pending the resolution of issue #2743. As most events are currently implicitly created, it requires loading the entire Anthology data.
Attributes:
Name | Type | Description |
---|---|---|
parent |
Anthology
|
The parent Anthology instance to which this index belongs. |
verbose |
bool
|
If False, will not show progress bar when building the index from scratch. |
reverse |
dict[AnthologyIDTuple, set[str]]
|
A mapping of volume IDs to a set of associated event IDs. |
is_data_loaded |
bool
|
A flag indicating whether the index has been constructed. |