the key hasher is not thread-safe and is only used in sequential batch processing of the input it is associated with
| 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(); |