MCPcopy Create free account
hub / github.com/apache/impala / Compress

Method Compress

be/src/util/decompress-test.cc:209–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void Compress(Codec* compressor, int64_t input_len, uint8_t* input,
210 int64_t* output_len, uint8_t** output, bool output_preallocated) {
211 if (input == NULL && compressor->file_extension() == "bz2") {
212 // bzip does not allow NULL input
213 *output = NULL;
214 *output_len = 0;
215 return;
216 }
217 EXPECT_OK(compressor->ProcessBlock(output_preallocated, input_len,
218 input, output_len, output));
219 }
220
221 Status StreamingDecompress(Codec* decompressor, int64_t input_len, uint8_t* input,
222 int64_t uncompressed_len, uint8_t* uncompressed_input, bool expected_stream_end,

Callers

nothing calls this directly

Calls 2

file_extensionMethod · 0.45
ProcessBlockMethod · 0.45

Tested by

no test coverage detected