swh.storage.cassandra.converters module

swh.storage.cassandra.converters.revision_to_db(revision: swh.model.model.Revision) swh.storage.cassandra.model.RevisionRow[source]
swh.storage.cassandra.converters.revision_from_db(db_revision: swh.storage.cassandra.model.RevisionRow, parents: Tuple[bytes, ...]) swh.model.model.Revision[source]
swh.storage.cassandra.converters.release_to_db(release: swh.model.model.Release) swh.storage.cassandra.model.ReleaseRow[source]
swh.storage.cassandra.converters.release_from_db(db_release: swh.storage.cassandra.model.ReleaseRow) swh.model.model.Release[source]
swh.storage.cassandra.converters.row_to_content_hashes(row: swh.storage.cassandra.model.ReleaseRow) Dict[str, bytes][source]

Convert cassandra row to a content hashes

swh.storage.cassandra.converters.row_to_visit(row: swh.storage.cassandra.model.OriginVisitRow) swh.model.model.OriginVisit[source]

Format a row representing an origin_visit to an actual OriginVisit.

swh.storage.cassandra.converters.row_to_visit_status(row: swh.storage.cassandra.model.OriginVisitStatusRow) swh.model.model.OriginVisitStatus[source]

Format a row representing a visit_status to an actual OriginVisitStatus.

swh.storage.cassandra.converters.visit_status_to_row(status: swh.model.model.OriginVisitStatus) swh.storage.cassandra.model.OriginVisitStatusRow[source]
swh.storage.cassandra.converters.row_to_raw_extrinsic_metadata(row: swh.storage.cassandra.model.RawExtrinsicMetadataRow) swh.model.model.RawExtrinsicMetadata[source]