36 std::unordered_map<std::string, Value>
options;
50 T
getOption(std::string optionName, T defaultValue)
const {
51 const auto optionIt =
options.find(optionName);
52 if (optionIt !=
options.end()) {
53 return optionIt->second.getValue<T>();
#define KU_ASSERT(condition)
Definition assert.h:19
uint32_t idx_t
Definition types.h:41
FileType
Definition reader_config.h:12
Definition array_utils.h:7
Definition reader_config.h:22
std::string fileTypeStr
Definition reader_config.h:24
FileType fileType
Definition reader_config.h:23
Definition reader_config.h:27
static FileType getFileTypeFromExtension(std::string_view extension)
static FileType fromString(std::string fileType)
static std::string toString(FileType fileType)
Definition reader_config.h:33
ReaderConfig(FileTypeInfo fileTypeInfo, std::vector< std::string > filePaths)
Definition reader_config.h:39
uint32_t getNumFiles() const
Definition reader_config.h:43
std::vector< std::string > filePaths
Definition reader_config.h:35
EXPLICIT_COPY_DEFAULT_MOVE(ReaderConfig)
T getOption(std::string optionName, T defaultValue) const
Definition reader_config.h:50
std::unordered_map< std::string, Value > options
Definition reader_config.h:36
FileTypeInfo fileTypeInfo
Definition reader_config.h:34
ReaderConfig()
Definition reader_config.h:38
std::string getFilePath(idx_t fileIdx) const
Definition reader_config.h:44