Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Public Member Functions | Static Public Member Functions | List of all members
arrow::io::BufferOutputStream Class Reference

#include <arrow/io/memory.h>

Inheritance diagram for arrow::io::BufferOutputStream:
arrow::io::OutputStream arrow::io::FileInterface arrow::io::Writeable

Public Member Functions

 BufferOutputStream (const std::shared_ptr< ResizableBuffer > &buffer)
 ~BufferOutputStream () override
Status Close () override
Status Tell (int64_t *position) const override
Status Write (const uint8_t *data, int64_t nbytes) override
Status Finish (std::shared_ptr< Buffer > *result)
 Close the stream and return the buffer. More...
- Public Member Functions inherited from arrow::io::FileInterface
virtual ~FileInterface ()=0
FileMode::type mode () const
- Public Member Functions inherited from arrow::io::Writeable
virtual ~Writeable ()=default
virtual Status Flush ()
 Flush buffered bytes, if any. More...
Status Write (const std::string &data)

Static Public Member Functions

static Status Create (int64_t initial_capacity, MemoryPool *pool, std::shared_ptr< BufferOutputStream > *out)

Additional Inherited Members

- Protected Member Functions inherited from arrow::io::OutputStream
 OutputStream ()=default
- Protected Member Functions inherited from arrow::io::FileInterface
 FileInterface ()
void set_mode (FileMode::type mode)
- Protected Attributes inherited from arrow::io::FileInterface
FileMode::type mode_

Constructor & Destructor Documentation

◆ BufferOutputStream()

arrow::io::BufferOutputStream::BufferOutputStream ( const std::shared_ptr< ResizableBuffer > &  buffer)

◆ ~BufferOutputStream()

arrow::io::BufferOutputStream::~BufferOutputStream ( )

Member Function Documentation

◆ Close()

Status arrow::io::BufferOutputStream::Close ( )

◆ Create()

static Status arrow::io::BufferOutputStream::Create ( int64_t  initial_capacity,
MemoryPool pool,
std::shared_ptr< BufferOutputStream > *  out 

◆ Finish()

Status arrow::io::BufferOutputStream::Finish ( std::shared_ptr< Buffer > *  result)

Close the stream and return the buffer.

◆ Tell()

Status arrow::io::BufferOutputStream::Tell ( int64_t *  position) const

◆ Write()

Status arrow::io::BufferOutputStream::Write ( const uint8_t *  data,
int64_t  nbytes 

Implements arrow::io::Writeable.

The documentation for this class was generated from the following file: