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

Method Make

cpp/src/arrow/acero/sorted_merge_node.cc:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112 template <typename PtrType>
113 static arrow::Result<PtrType> Make(size_t index, arrow::acero::ExecNode* input,
114 arrow::acero::ExecNode* output,
115 std::atomic<int32_t>& backpressure_counter,
116 const std::shared_ptr<arrow::Schema>& schema,
117 const col_index_t time_col_index) {
118 constexpr size_t low_threshold = 4, high_threshold = 8;
119 std::unique_ptr<arrow::acero::BackpressureControl> backpressure_control =
120 std::make_unique<BackpressureController>(input, output, backpressure_counter);
121 ARROW_ASSIGN_OR_RAISE(auto handler,
122 BackpressureHandler::Make(low_threshold, high_threshold,
123 std::move(backpressure_control)));
124 return PtrType(new InputState(index, std::move(handler), schema, time_col_index));
125 }
126
127 bool IsTimeColumn(col_index_t i) const {
128 DCHECK_LT(i, schema_->num_fields());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected