| 23 | namespace orc { |
| 24 | |
| 25 | std::string compressionKindToString(CompressionKind kind) { |
| 26 | switch (static_cast<int>(kind)) { |
| 27 | case CompressionKind_NONE: |
| 28 | return "none"; |
| 29 | case CompressionKind_ZLIB: |
| 30 | return "zlib"; |
| 31 | case CompressionKind_SNAPPY: |
| 32 | return "snappy"; |
| 33 | case CompressionKind_LZO: |
| 34 | return "lzo"; |
| 35 | case CompressionKind_LZ4: |
| 36 | return "lz4"; |
| 37 | case CompressionKind_ZSTD: |
| 38 | return "zstd"; |
| 39 | } |
| 40 | std::stringstream buffer; |
| 41 | buffer << "unknown - " << kind; |
| 42 | return buffer.str(); |
| 43 | } |
| 44 | |
| 45 | std::string writerVersionToString(WriterVersion version) { |
| 46 | switch (static_cast<int>(version)) { |
no outgoing calls