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:44
FileType
Definition reader_config.h:13
std::unordered_map< std::string, T, CaseInsensitiveStringHashFunction, CaseInsensitiveStringEquality > case_insensitive_map_t
Definition case_insensitive_map.h:22
Definition array_utils.h:7
Definition reader_config.h:20
std::string fileTypeStr
Definition reader_config.h:22
FileType fileType
Definition reader_config.h:21
Definition reader_config.h:25
static FileType getFileTypeFromExtension(std::string_view extension)
static FileType fromString(std::string fileType)
static std::string toString(FileType fileType)
Definition reader_config.h:31
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)
static constexpr const char * FILE_FORMAT_OPTION_NAME
Definition reader_config.h:32
T getOption(std::string optionName, T defaultValue) const
Definition reader_config.h:50
FileTypeInfo fileTypeInfo
Definition reader_config.h:34
case_insensitive_map_t< Value > options
Definition reader_config.h:36
ReaderConfig()
Definition reader_config.h:38
std::string getFilePath(idx_t fileIdx) const
Definition reader_config.h:44