| 729 | } |
| 730 | |
| 731 | Status Push(const std::shared_ptr<arrow::RecordBatch>& rb) { |
| 732 | if (rb->num_rows() > 0) { |
| 733 | key_hasher_->Invalidate(); // batch changed - invalidate key hasher's cache |
| 734 | queue_.Push(rb); // only now push batch for processing |
| 735 | } else { |
| 736 | ++batches_processed_; // don't enqueue empty batches, just record as processed |
| 737 | } |
| 738 | return Status::OK(); |
| 739 | } |
| 740 | |
| 741 | std::optional<const MemoStore::Entry*> GetMemoEntryForKey(ByType key) { |
| 742 | return memo_.GetEntryForKey(key); |