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