Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::BufferBuilder Class Reference

Utility class to build an in-memory buffer. More...

#include <buffer-builder.h>

Collaboration diagram for impala::BufferBuilder:

Public Member Functions

 BufferBuilder (uint8_t *dst_buffer, int dst_len)
 
 BufferBuilder (char *dst_buffer, int dst_len)
 
void Append (const void *buffer, int len)
 
template<typename T >
void Append (const T &v)
 
int capacity () const
 
int size () const
 

Private Attributes

uint8_t * buffer_
 
int capacity_
 
int size_
 

Detailed Description

Utility class to build an in-memory buffer.

Definition at line 25 of file buffer-builder.h.

Constructor & Destructor Documentation

impala::BufferBuilder::BufferBuilder ( uint8_t *  dst_buffer,
int  dst_len 
)
inline

Definition at line 27 of file buffer-builder.h.

impala::BufferBuilder::BufferBuilder ( char *  dst_buffer,
int  dst_len 
)
inline

Definition at line 31 of file buffer-builder.h.

Member Function Documentation

void impala::BufferBuilder::Append ( const void *  buffer,
int  len 
)
inline
template<typename T >
void impala::BufferBuilder::Append ( const T &  v)
inline

Definition at line 43 of file buffer-builder.h.

References Append().

int impala::BufferBuilder::capacity ( ) const
inline
int impala::BufferBuilder::size ( ) const
inline

Member Data Documentation

uint8_t* impala::BufferBuilder::buffer_
private

Definition at line 51 of file buffer-builder.h.

Referenced by Append().

int impala::BufferBuilder::capacity_
private

Definition at line 52 of file buffer-builder.h.

Referenced by Append(), and capacity().

int impala::BufferBuilder::size_
private

Definition at line 53 of file buffer-builder.h.

Referenced by Append(), and size().


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