include/qpl/cpp_api/util/qpl_util.hpp
/**
 * @brief Maps high-level enum to middle-level one
 */
@brief Maps high-level enum to middle-level one
@brief Maps high - level enum to middle - level one
static inline auto parser_to_ml_parser(const parsers parser) noexcept -> ml::analytics::stream_format_t {
    switch (parser) {
        case parsers::little_endian_packed_array: {
            return ml::analytics::stream_format_t::le_format;
        }
        case parsers::big_endian_packed_array: {
            return ml::analytics::stream_format_t::be_format;
        }
        case parsers::parquet_rle: {
            return ml::analytics::stream_format_t::prle_format;
        }
        default: {
            return ml::analytics::stream_format_t::le_format;
        }
    }
}
static inline auto parser_to_ml_parser ( const parsers parser ) noexcept -> ml :: analytics :: stream_format_t { switch ( parser ) { case parsers :: little_endian_packed_array : { return ml :: analytics :: stream_format_t :: le_format ; } case parsers :: big_endian_packed_array : { return ml :: analytics :: stream_format_t :: be_format ; } case parsers :: parquet_rle : { return ml :: analytics :: stream_format_t :: prle_format ; } default : { return ml :: analytics :: stream_format_t :: le_format ; } } }
@brief Maps high-level enum to middle-level one
@brief Maps high - level enum to middle - level one