Template Class ChunkDataReader
Defined in File chunk.h
Page Contents
Class Documentation
-
template<typename ExampleType_, typename ChunkType_ = std::vector<ExampleType_>>
class ChunkDataReader Interface for chunk reader, which performs data chunking and reading of entire chunks.
A chunk could be an entire file, such as an audio data file or an image, or part of a file in the case of a large text-file split based on seek positions.
Public Functions
-
virtual ChunkType read_chunk(size_t chunk_index) = 0
Read an entire chunk.
-
virtual ChunkType read_chunk(size_t chunk_index) = 0