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

Method doBlockCompression

c++/src/Compression.cc:1070–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068 };
1069
1070 uint64_t Lz4CompressionSteam::doBlockCompression() {
1071 int result = LZ4_compress_fast_extState(
1072 static_cast<void*>(state_), reinterpret_cast<const char*>(rawInputBuffer.data()),
1073 reinterpret_cast<char*>(compressorBuffer.data()), bufferSize,
1074 static_cast<int>(compressorBuffer.size()), level);
1075 if (result == 0) {
1076 throw CompressionError("Error during block compression using lz4.");
1077 }
1078 return static_cast<uint64_t>(result);
1079 }
1080
1081 void Lz4CompressionSteam::init() {
1082 state_ = LZ4_createStream();

Callers

nothing calls this directly

Calls 3

CompressionErrorClass · 0.85
sizeMethod · 0.65
dataMethod · 0.45

Tested by

no test coverage detected