2424namespace o2 ::framework
2525{
2626
27- using namespace arrow ;
28- using namespace arrow ::io;
29-
30- class FairMQOutputStream : public OutputStream
27+ class FairMQOutputStream : public arrow ::io::OutputStream
3128{
3229 public:
33- explicit FairMQOutputStream (const std::shared_ptr<ResizableBuffer>& buffer);
30+ explicit FairMQOutputStream (const std::shared_ptr<arrow:: ResizableBuffer>& buffer);
3431
3532 // / \brief Create in-memory output stream with indicated capacity using a
3633 // / memory pool
3734 // / \param[in] initial_capacity the initial allocated internal capacity of
3835 // / the OutputStream
3936 // / \param[in,out] pool a MemoryPool to use for allocations
4037 // / \return the created stream
41- static Result<std::shared_ptr<FairMQOutputStream>> Create (
42- int64_t initial_capacity = 4096 , MemoryPool* pool = default_memory_pool());
38+ static arrow:: Result<std::shared_ptr<FairMQOutputStream>> Create (
39+ int64_t initial_capacity = 4096 , arrow:: MemoryPool* pool = arrow:: default_memory_pool());
4340
4441 // By the time we call the destructor, the contents
4542 // of the buffer are already moved to fairmq
@@ -49,34 +46,34 @@ class FairMQOutputStream : public OutputStream
4946 // Implement the OutputStream interface
5047
5148 // / Close the stream, preserving the buffer (retrieve it with Finish()).
52- Status Close () override ;
49+ arrow:: Status Close () override ;
5350 [[nodiscard]] bool closed () const override ;
54- [[nodiscard]] Result<int64_t > Tell () const override ;
55- Status Write (const void * data, int64_t nbytes) override ;
51+ [[nodiscard]] arrow:: Result<int64_t > Tell () const override ;
52+ arrow:: Status Write (const void * data, int64_t nbytes) override ;
5653
5754 // / \cond FALSE
5855 using OutputStream::Write;
5956 // / \endcond
6057
6158 // / Close the stream and return the buffer
62- Result<std::shared_ptr<Buffer>> Finish ();
59+ arrow:: Result<std::shared_ptr<arrow:: Buffer>> Finish ();
6360
6461 // / \brief Initialize state of OutputStream with newly allocated memory and
6562 // / set position to 0
6663 // / \param[in] initial_capacity the starting allocated capacity
6764 // / \param[in,out] pool the memory pool to use for allocations
6865 // / \return Status
69- Status Reset (int64_t initial_capacity = 1024 , MemoryPool* pool = default_memory_pool());
66+ arrow:: Status Reset (int64_t initial_capacity = 1024 , arrow:: MemoryPool* pool = arrow:: default_memory_pool());
7067
7168 [[nodiscard]] int64_t capacity () const { return capacity_; }
7269
7370 private:
7471 FairMQOutputStream ();
7572
7673 // Ensures there is sufficient space available to write nbytes
77- Status Reserve (int64_t nbytes);
74+ arrow:: Status Reserve (int64_t nbytes);
7875
79- std::shared_ptr<ResizableBuffer> buffer_;
76+ std::shared_ptr<arrow:: ResizableBuffer> buffer_;
8077 bool is_open_;
8178 int64_t capacity_;
8279 int64_t position_;
0 commit comments