Rate this Page

Struct ChunkDatasetOptions#

Page Contents

Struct Documentation#

struct ChunkDatasetOptions#

Options to configure a ChunkDataset.

Public Functions

ChunkDatasetOptions() = delete#
inline ChunkDatasetOptions(size_t preloader_count, size_t batch_size, size_t cache_size = 2048, size_t cross_chunk_shuffle_count = 1)#
inline auto preloader_count(const size_t &new_preloader_count) -> decltype(*this)#

The number of worker thread to preload chunk data.

inline auto preloader_count(size_t &&new_preloader_count) -> decltype(*this)#
inline const size_t &preloader_count() const noexcept#
inline size_t &preloader_count() noexcept#
inline auto batch_size(const size_t &new_batch_size) -> decltype(*this)#

The size of each batch.

inline auto batch_size(size_t &&new_batch_size) -> decltype(*this)#
inline const size_t &batch_size() const noexcept#
inline size_t &batch_size() noexcept#
inline auto cache_size(const size_t &new_cache_size) -> decltype(*this)#

The capacity of the queue for batch caching.

inline auto cache_size(size_t &&new_cache_size) -> decltype(*this)#
inline const size_t &cache_size() const noexcept#
inline size_t &cache_size() noexcept#
inline auto cross_chunk_shuffle_count(const size_t &new_cross_chunk_shuffle_count) -> decltype(*this)#
inline auto cross_chunk_shuffle_count(size_t &&new_cross_chunk_shuffle_count) -> decltype(*this)#
inline const size_t &cross_chunk_shuffle_count() const noexcept#
inline size_t &cross_chunk_shuffle_count() noexcept#