Get a random read sample
| 218 | |
| 219 | // Get a random read sample |
| 220 | LoadTargetSharedPtr ReadOne(bool is_new_batch, bool is_end_of_batch) { |
| 221 | return ReadOne(is_new_batch, is_end_of_batch, [](Index i){ return true; }); |
| 222 | } |
| 223 | |
| 224 | // Reads one sample if its index (total_read_sample_counter_) matches the provided filter. |
| 225 | // Otherwise, uses `Skip` instead of `ReadSample` to skip the sample. |