Returns the number of configured partitions, including empty ones that appear only in the explicit read schedule.
(&self)
| 1553 | /// Returns the number of configured partitions, including empty ones |
| 1554 | /// that appear only in the explicit read schedule. |
| 1555 | fn num_partitions(&self) -> usize { |
| 1556 | self.partition_files |
| 1557 | .keys() |
| 1558 | .map(|partition| partition.0 + 1) |
| 1559 | .chain(self.reads.iter().map(|partition| partition.0 + 1)) |
| 1560 | .max() |
| 1561 | .unwrap_or(1) |
| 1562 | } |
| 1563 | |
| 1564 | /// Builds a `FileScanConfig` covering every configured partition. |
| 1565 | fn test_config(&self) -> FileScanConfig { |