Returns the number of elements produced by this itertaor.
| 587 | |
| 588 | // Returns the number of elements produced by this itertaor. |
| 589 | int64 num_elements() const { |
| 590 | if (node_) return node_->num_elements(); |
| 591 | return 0; |
| 592 | } |
| 593 | |
| 594 | private: |
| 595 | friend class DatasetBase; // for access to `AddCleanupFunction` |
no outgoing calls