35enum class ICEBERG_EXPORT FileFormatType {
43ICEBERG_EXPORT
inline std::string_view
ToString(FileFormatType format_type) {
44 switch (format_type) {
45 case FileFormatType::kParquet:
47 case FileFormatType::kAvro:
49 case FileFormatType::kOrc:
51 case FileFormatType::kPuffin:
59 std::string_view str)
noexcept {
61 if (lower ==
"parquet")
return FileFormatType::kParquet;
62 if (lower ==
"avro")
return FileFormatType::kAvro;
63 if (lower ==
"orc")
return FileFormatType::kOrc;
64 if (lower ==
"puffin")
return FileFormatType::kPuffin;
65 return InvalidArgument(
"Invalid file format type: {}", str);
static std::string ToLower(std::string_view str)
Lower-case a UTF-8 string using Unicode simple (1:1) case mapping.
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
ICEBERG_EXPORT std::string_view ToString(Expression::Operation op)
Returns a string representation of an expression operation.
std::expected< T, E > Result
Result alias.
Definition result.h:88
ICEBERG_EXPORT Result< FileFormatType > FileFormatTypeFromString(std::string_view str) noexcept
Convert a string to a FileFormatType.
Definition file_format.h:58
Define Result, Status, and error helpers.
Provide string utility helpers.