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

Method Init

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

Source from the content-addressed store, hash-verified

408 }
409
410 Status Init(ExecContext* exec_context, const std::shared_ptr<arrow::Schema>& schema) {
411 ctx_.hardware_flags = exec_context->cpu_info()->hardware_flags();
412 const auto& fields = schema->fields();
413 for (size_t k = 0; k < metadata_.size(); k++) {
414 ARROW_ASSIGN_OR_RAISE(metadata_[k],
415 ColumnMetadataFromDataType(fields[indices_[k]]->type()));
416 }
417 return stack_.Init(exec_context->memory_pool(),
418 4 * kMiniBatchLength * sizeof(uint32_t));
419 }
420
421 // invalidate cached hashes for batch - required when it changes
422 // only this method can be called concurrently with HashesFor

Callers 1

InitMethod · 0.45

Calls 8

hardware_flagsMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
cpu_infoMethod · 0.45
fieldsMethod · 0.45
sizeMethod · 0.45
typeMethod · 0.45
memory_poolMethod · 0.45

Tested by

no test coverage detected