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

Method InputState

cpp/src/arrow/acero/asof_join_node.cc:483–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482 public:
483 InputState(size_t index, TolType tolerance, bool must_hash, bool may_rehash,
484 KeyHasher* key_hasher, AsofJoinNode* node, BackpressureHandler handler,
485 const std::shared_ptr<arrow::Schema>& schema,
486 const col_index_t time_col_index,
487 const std::vector<col_index_t>& key_col_index)
488 : sequencer_(util::SerialSequencingQueue::Make(this)),
489 queue_(std::move(handler)),
490 schema_(schema),
491 time_col_index_(time_col_index),
492 key_col_index_(key_col_index),
493 time_type_id_(schema_->fields()[time_col_index_]->type()->id()),
494 key_type_id_(key_col_index.size()),
495 key_hasher_(key_hasher),
496 node_(node),
497 index_(index),
498 must_hash_(must_hash),
499 may_rehash_(may_rehash),
500 tolerance_(tolerance),
501 memo_(DEBUG_ADD(/*no_future=*/index == 0 || !tolerance.positive, node, index)) {
502 for (size_t k = 0; k < key_col_index_.size(); k++) {
503 key_type_id_[k] = schema_->fields()[key_col_index_[k]]->type()->id();
504 }
505 }
506
507 static Result<std::unique_ptr<InputState>> Make(
508 size_t index, TolType tolerance, bool must_hash, bool may_rehash,

Callers

nothing calls this directly

Calls 5

MakeFunction · 0.50
idMethod · 0.45
typeMethod · 0.45
fieldsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected