| 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 |
no test coverage detected