swh.storage.cassandra.converters module#
- swh.storage.cassandra.converters.revision_to_db(revision: Revision) RevisionRow [source]#
- swh.storage.cassandra.converters.revision_from_db(db_revision: RevisionRow, parents: Tuple[bytes, ...]) Revision [source]#
- swh.storage.cassandra.converters.release_to_db(release: Release) ReleaseRow [source]#
- swh.storage.cassandra.converters.release_from_db(db_release: ReleaseRow) Release [source]#
- swh.storage.cassandra.converters.row_to_content_hashes(row: ReleaseRow) Dict[str, bytes] [source]#
Convert cassandra row to a content hashes
- swh.storage.cassandra.converters.row_to_visit(row: OriginVisitRow) OriginVisit [source]#
Format a row representing an origin_visit to an actual OriginVisit.
- swh.storage.cassandra.converters.row_to_visit_status(row: OriginVisitStatusRow) OriginVisitStatus [source]#
Format a row representing a visit_status to an actual OriginVisitStatus.
- swh.storage.cassandra.converters.visit_status_to_row(status: OriginVisitStatus) OriginVisitStatusRow [source]#
- swh.storage.cassandra.converters.row_to_raw_extrinsic_metadata(row: RawExtrinsicMetadataRow) RawExtrinsicMetadata [source]#
- swh.storage.cassandra.converters.object_reference_to_row(object_reference: ObjectReference) ObjectReferenceRow [source]#
- swh.storage.cassandra.converters.row_to_object_reference(row: ObjectReferenceRow) ObjectReference [source]#