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

Method Insert

cpp/src/arrow/json/chunked_builder.cc:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 promotion_graph_(promotion_graph) {}
108
109 void Insert(int64_t block_index, const std::shared_ptr<Field>& unconverted_field,
110 const std::shared_ptr<Array>& unconverted) override {
111 std::unique_lock<std::mutex> lock(mutex_);
112 if (chunks_.size() <= static_cast<size_t>(block_index)) {
113 chunks_.resize(static_cast<size_t>(block_index) + 1, nullptr);
114 unconverted_.resize(chunks_.size(), nullptr);
115 unconverted_fields_.resize(chunks_.size(), nullptr);
116 }
117 unconverted_[block_index] = unconverted;
118 unconverted_fields_[block_index] = unconverted_field;
119 lock.unlock();
120 ScheduleConvertChunk(block_index);
121 }
122
123 void ScheduleConvertChunk(int64_t block_index) {
124 auto self = shared_from_this();

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected