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

Method KeyHasher

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

the key hasher is not thread-safe and is only used in sequential batch processing of the input it is associated with

Source from the content-addressed store, hash-verified

395 // the key hasher is not thread-safe and is only used in sequential batch processing
396 // of the input it is associated with
397 KeyHasher(size_t index, const std::vector<col_index_t>& indices)
398 : index_(index),
399 indices_(indices),
400 metadata_(indices.size()),
401 batch_(NULLPTR),
402 hashes_(),
403 ctx_(),
404 column_arrays_(),
405 stack_() {
406 ctx_.stack = &stack_;
407 column_arrays_.resize(indices.size());
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();

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected