MCPcopy Create free account
hub / github.com/apache/arrow / Init

Method Init

cpp/src/arrow/io/compressed.cc:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 : pool_(pool), raw_(raw), is_open_(false), compressed_pos_(0), total_pos_(0) {}
49
50 Status Init(Codec* codec) {
51 ARROW_ASSIGN_OR_RAISE(compressor_, codec->MakeCompressor());
52 ARROW_ASSIGN_OR_RAISE(compressed_, AllocateResizableBuffer(kChunkSize, pool_));
53 compressed_pos_ = 0;
54 is_open_ = true;
55 return Status::OK();
56 }
57
58 Result<int64_t> Tell() const {
59 std::lock_guard<std::mutex> guard(lock_);

Callers

nothing calls this directly

Calls 4

AllocateResizableBufferFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
MakeCompressorMethod · 0.45

Tested by

no test coverage detected