Operation that will load a file into memory -- similar to `OpReadFromTAR` but loads directly from the filesystem. This is useful for testing the in-memory path.
| 15 | /// but loads directly from the filesystem. This is useful for testing the |
| 16 | /// in-memory path. |
| 17 | class LoadFile : public KeyTransformOp { |
| 18 | public: |
| 19 | LoadFile( |
| 20 | const std::string& ikey, |
| 21 | const std::filesystem::path& prefix = "", |
| 22 | const std::string& okey = ""); |
| 23 | |
| 24 | virtual std::shared_ptr<Array> apply_key( |
| 25 | const std::shared_ptr<const Array>& src) const override; |
| 26 | |
| 27 | private: |
| 28 | std::filesystem::path prefix_; |
| 29 | }; |
| 30 | |
| 31 | } // namespace op |
| 32 | } // namespace data |
nothing calls this directly
no outgoing calls
no test coverage detected