| 505 | } |
| 506 | |
| 507 | static Result<std::unique_ptr<InputState>> Make( |
| 508 | size_t index, TolType tolerance, bool must_hash, bool may_rehash, |
| 509 | KeyHasher* key_hasher, ExecNode* asof_input, AsofJoinNode* asof_node, |
| 510 | std::atomic<int32_t>& backpressure_counter, |
| 511 | const std::shared_ptr<arrow::Schema>& schema, const col_index_t time_col_index, |
| 512 | const std::vector<col_index_t>& key_col_index) { |
| 513 | constexpr size_t low_threshold = 4, high_threshold = 8; |
| 514 | std::unique_ptr<BackpressureControl> backpressure_control = |
| 515 | std::make_unique<BackpressureController>( |
| 516 | /*node=*/asof_input, /*output=*/asof_node, backpressure_counter); |
| 517 | ARROW_ASSIGN_OR_RAISE(auto handler, |
| 518 | BackpressureHandler::Make(low_threshold, high_threshold, |
| 519 | std::move(backpressure_control))); |
| 520 | return std::make_unique<InputState>(index, tolerance, must_hash, may_rehash, |
| 521 | key_hasher, asof_node, std::move(handler), schema, |
| 522 | time_col_index, key_col_index); |
| 523 | } |
| 524 | |
| 525 | col_index_t InitSrcToDstMapping(col_index_t dst_offset, bool skip_time_and_key_fields) { |
| 526 | src_to_dst_.resize(schema_->num_fields()); |
nothing calls this directly
no outgoing calls
no test coverage detected