#include "tensorstore/open_options.h"
struct tensorstore::TransactionalOpenOptions : public OpenOptions;

Options for opening a Spec with optional transaction and optional batch.

Allows the key-value store to be specified as either a tensorstore::kvstore::Spec or an already-open KvStore.

Data members

Transaction transaction = {no_transaction};

Transaction to bind to the opened TensorStore.

Batch batch = {no_batch};

Batch for coalescing I/O operations performed during open.

Methods

absl::Status Set(Transaction value);
absl::Status Set(Batch value);
absl::Status Set(KvStore value);

Applies a Transaction, Batch, or KvStore option.