MCPcopy Create free account
hub / github.com/apache/orc / compressionKindToString

Function compressionKindToString

c++/src/Common.cc:25–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace 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)) {

Callers 2

printMetadataFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68