MCPcopy Create free account
hub / github.com/apache/arrow / Inspect

Method Inspect

cpp/src/arrow/dataset/partition.cc:633–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631 std::string type_name() const override { return "filename"; }
632
633 Result<std::shared_ptr<Schema>> Inspect(
634 const std::vector<std::string>& paths) override {
635 for (const auto& path : paths) {
636 std::vector<std::string> segments;
637 segments =
638 fs::internal::SplitAbstractPath(StripNonPrefix(path), kFilenamePartitionSep);
639 RETURN_NOT_OK(InspectPartitionSegments(segments, field_names_));
640 }
641 return DoInspect();
642 }
643
644 Result<std::shared_ptr<Partitioning>> Finish(
645 const std::shared_ptr<Schema>& schema) const override {

Callers

nothing calls this directly

Calls 2

SplitAbstractPathFunction · 0.85
StripNonPrefixFunction · 0.85

Tested by

no test coverage detected