-
#include "tensorstore/kvstore/kvstore.h"
-
Future<KvStore>
tensorstore::kvstore::Open(Spec spec, OpenOptions&& options); -
Future<KvStore> tensorstore::kvstore::Open(::nlohmann::json json_spec,
OpenOptions&& options); -
template <typename... Option>
requires IsCompatibleOptionSequence<OpenOptions, Option...>
static Future<KvStore>
tensorstore::kvstore::Open(Spec spec, Option&&... option); -
template <typename... Option>
requires IsCompatibleOptionSequence<OpenOptions, Option...>
static Future<KvStore>
tensorstore::kvstore::Open(::nlohmann::json j, Option&&... option); Opens a
KvStore
based on an already-parsedkvstore::Spec
and an optional sequence of options.Options may be specified in any order, and are identified by their type. Supported option types are:
Context: specifies the context in which to obtain any unbound context resources in
spec
. Any already-bound context resources inspec
remain unmodified. If not specified,Context::Default()
is used.Transaction: specifies a transaction to bind to the returned
KvStore
. Currently this does not affect the open operation itself.
- Parameters:¶
- Spec spec¶
KvStore specification.
- ::nlohmann::json json_spec
JSON value (which may be a string URL) to be parsed as a
Spec
.- Option&&... option
Any option compatible with
OpenOptions
.- OpenOptions &&options¶
Options for opening the spec.