-
#include "tensorstore/virtual_chunked.h" - struct tensorstore::virtual_chunked::OpenOptions : public Schema;
Options to the
VirtualChunkedfunction for creating avirtual_chunkedTensorStore.The following option types are supported:
Context: used to obtain theContext.cache_pool, which is used for caching, andContext.data_copy_concurrency, which determines the number of concurrent calls to theread_functionthat will be supported. To enable caching, specify aContext.cache_poolresource with a non-zerototal_bytes_limit, and also optionally specifyRecheckCachedData{false}.RankConstraint: May be used to specify a rank constraint, which is useful to indicate an unbounded domain if the rank is not otherwise specified.IndexDomain,Schema::Shape: Specifies the domain of the returnedTensorStore. If not specified, the domain is unbounded.DataType: Specifies the data type of the returned TensorStore. Must be specified, if not specified at compile-time via a template parameter toVirtualChunked.ChunkLayout, and any options supported byChunkLayout: Specifies the chunk layout that will be used. TheChunkLayout::grid_origin,ChunkLayout::inner_order, andChunkLayout::read_chunkconstraints may be specified. It is not valid to specifyChunkLayout::write_chunkandChunkLayout::codec_chunkconstraints. If not specified,ChunkLayout::inner_orderdefaults to lexicographic,ChunkLayout::grid_origindefaults to the origin of the domain (or 0 if unbounded), and a chunk shape is chosen heuristically.RecheckCachedData: May be specified in conjunction with aContextwith non-zerototal_bytes_limitspecified for theContext.cache_poolto avoid re-invoking theread_functionto validate cached data.
Data members¶
- Context context;
Context for obtaining
Context.cache_poolandContext.data_copy_concurrencyresources.
- Transaction transaction = {no_transaction};
Transaction to bind to the returned
TensorStore.
- RecheckCachedData recheck_cached_data;
Cache staleness bound for cached chunks.
Methods¶
- absl::Status Set(Transaction value);
Sets the
Transactionoption.
- absl::Status Set(RecheckCachedData value);
Sets the
RecheckCachedDataoption.