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

Enables random writes into a fixed-size mutable buffer. More...

#include <arrow/io/memory.h>

Inheritance diagram for arrow::io::FixedSizeBufferWriter:
arrow::io::WriteableFile arrow::io::OutputStream arrow::io::Seekable arrow::io::FileInterface arrow::io::Writeable

Public Member Functions

 FixedSizeBufferWriter (const std::shared_ptr< Buffer > &buffer)
 Input buffer must be mutable, will abort if not. More...
 
 ~FixedSizeBufferWriter () override
 
Status Close () override
 
Status Seek (int64_t position) override
 
Status Tell (int64_t *position) const override
 
Status Write (const uint8_t *data, int64_t nbytes) override
 
Status WriteAt (int64_t position, const uint8_t *data, int64_t nbytes) override
 
void set_memcopy_threads (int num_threads)
 
void set_memcopy_blocksize (int64_t blocksize)
 
void set_memcopy_threshold (int64_t threshold)
 
- 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)
 
- Public Member Functions inherited from arrow::io::Seekable
virtual ~Seekable ()=default
 

Protected Attributes

std::unique_ptr< FixedSizeBufferWriterImpl > impl_
 
- Protected Attributes inherited from arrow::io::FileInterface
FileMode::type mode_
 

Additional Inherited Members

- Protected Member Functions inherited from arrow::io::WriteableFile
 WriteableFile ()=default
 
- 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)
 

Detailed Description

Enables random writes into a fixed-size mutable buffer.

Constructor & Destructor Documentation

◆ FixedSizeBufferWriter()

arrow::io::FixedSizeBufferWriter::FixedSizeBufferWriter ( const std::shared_ptr< Buffer > &  buffer)
explicit

Input buffer must be mutable, will abort if not.

◆ ~FixedSizeBufferWriter()

arrow::io::FixedSizeBufferWriter::~FixedSizeBufferWriter ( )
override

Member Function Documentation

◆ Close()

Status arrow::io::FixedSizeBufferWriter::Close ( )
overridevirtual

◆ Seek()

Status arrow::io::FixedSizeBufferWriter::Seek ( int64_t  position)
overridevirtual

Implements arrow::io::Seekable.

◆ set_memcopy_blocksize()

void arrow::io::FixedSizeBufferWriter::set_memcopy_blocksize ( int64_t  blocksize)

◆ set_memcopy_threads()

void arrow::io::FixedSizeBufferWriter::set_memcopy_threads ( int  num_threads)

◆ set_memcopy_threshold()

void arrow::io::FixedSizeBufferWriter::set_memcopy_threshold ( int64_t  threshold)

◆ Tell()

Status arrow::io::FixedSizeBufferWriter::Tell ( int64_t *  position) const
overridevirtual

◆ Write()

Status arrow::io::FixedSizeBufferWriter::Write ( const uint8_t *  data,
int64_t  nbytes 
)
overridevirtual

Implements arrow::io::Writeable.

◆ WriteAt()

Status arrow::io::FixedSizeBufferWriter::WriteAt ( int64_t  position,
const uint8_t *  data,
int64_t  nbytes 
)
overridevirtual

Member Data Documentation

◆ impl_

std::unique_ptr<FixedSizeBufferWriterImpl> arrow::io::FixedSizeBufferWriter::impl_
protected

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