Class AsyncRewriter (2.26.0-rc)

Perform object rewrites asynchronously.

Object rewrites allow applications to copy objects within Google Cloud Storage without having to download the data. In many cases the copy is a pure metadata operation, see Object: rewrite for mode information.

Constructors

AsyncRewriter(AsyncRewriter &&)

Move-only.

Parameter
Name Description
AsyncRewriter &&

AsyncRewriter(AsyncRewriter const &)

Move-only.

Parameter
Name Description
AsyncRewriter const &

AsyncRewriter()

AsyncRewriter(std::shared_ptr< AsyncRewriterConnection >)

Parameter
Name Description
impl std::shared_ptr< AsyncRewriterConnection >

Operators

operator=(AsyncRewriter &&)

Move-only.

Parameter
Name Description
AsyncRewriter &&
Returns
Type Description
AsyncRewriter &

operator=(AsyncRewriter const &)

Move-only.

Parameter
Name Description
AsyncRewriter const &
Returns
Type Description
AsyncRewriter &

Functions

Iterate(AsyncToken)

Run one more iteration of the rewrite process.

Applications may checkpoint the rewrite token and use it to resume rewrites after restarting.

Parameter
Name Description
token AsyncToken
Returns
Type Description
future< StatusOr< std::pair< google::storage::v2::RewriteResponse, AsyncToken > > >