swh.indexer.storage.model module#
Classes used internally by the in-memory idx-storage, and will be used for the interface of the idx-storage in the near future.
- class swh.indexer.storage.model.BaseRow(id: Any, *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
object
Method generated by attrs for class BaseRow.
- class swh.indexer.storage.model.ContentMimetypeRow(id: bytes, mimetype: str, encoding: str, *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class ContentMimetypeRow.
- class swh.indexer.storage.model.ContentLicenseRow(id: bytes, license: str, *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class ContentLicenseRow.
- class swh.indexer.storage.model.ContentMetadataRow(id: bytes, metadata: Dict[str, Any], *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class ContentMetadataRow.
- class swh.indexer.storage.model.DirectoryIntrinsicMetadataRow(id: bytes, metadata: Dict[str, Any], mappings: List[str], *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class DirectoryIntrinsicMetadataRow.
- class swh.indexer.storage.model.OriginIntrinsicMetadataRow(id: str, metadata: Dict[str, Any], from_directory: bytes, mappings: List[str], *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class OriginIntrinsicMetadataRow.
- class swh.indexer.storage.model.OriginExtrinsicMetadataRow(id: str, metadata: Dict[str, Any], from_remd_id: bytes, mappings: List[str], *, indexer_configuration_id: int | None = None, tool: Dict | None = None)[source]#
Bases:
BaseRow
Method generated by attrs for class OriginExtrinsicMetadataRow.
- id#
origin URL
- from_remd_id#
id of the RawExtrinsicMetadata object used as source for indexed metadata