| 264 | } |
| 265 | |
| 266 | std::string FileSystemDataset::ToString() const { |
| 267 | std::string repr = "FileSystemDataset:"; |
| 268 | |
| 269 | if (fragments_.empty()) { |
| 270 | return repr + " []"; |
| 271 | } |
| 272 | |
| 273 | for (const auto& fragment : fragments_) { |
| 274 | repr += "\n" + fragment->source().path(); |
| 275 | |
| 276 | const auto& partition = fragment->partition_expression(); |
| 277 | if (partition != compute::literal(true)) { |
| 278 | repr += ": " + partition.ToString(); |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | return repr; |
| 283 | } |
| 284 | |
| 285 | void FileSystemDataset::SetupSubtreePruning() { |
| 286 | subtrees_ = std::make_shared<FragmentSubtrees>(); |