Base chunk subgraph deleter
Contract shared by all chunk-deletion strategies.
BaseChunkSubgraphDeleter
Bases: ABC
Deletes a chunk and its exclusively-owned subgraph from one backend.
Implementations encapsulate the backend-specific queries that enforce the regulation indexer's ownership rule: content a chunk exclusively owns is removed, while content shared with other chunks is preserved.
delete_chunk_subgraph(chunk_id, index_name)
abstractmethod
Delete the subgraph owned exclusively by chunk_id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chunk_id
|
str
|
Identifier of the chunk to delete. |
required |
index_name
|
str
|
Namespace scoping the deletion to one pipeline. |
required |
Returns:
| Type | Description |
|---|---|
tuple[int, int]
|
tuple[int, int]: nodes_deleted & edges_deleted, the counts of deleted graph elements. |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Always raised by the base implementation. |