C++ SDK Documentation  11.0.1
Vertica::Array::ArrayWriter Class Reference

Interface for writing elements into an array datum. More...

Collaboration diagram for Vertica::Array::ArrayWriter:
Collaboration graph

Public Member Functions

void commit ()
 
BlockWriteroperator* ()
 
const BlockWriteroperator* () const
 
BlockWriteroperator-> ()
 
BlockWriteroperator-> () const
 
void setEmpty ()
 

Detailed Description

Interface for writing elements into an array datum.

This class wraps a BlockWriter which is a cursor onto elements of an array datum. Use the wrapped BlockWriter to write element data, and then finalize the array contents by calling ArrayWriter::commit. This does any necessary post-processing to convert the element data into a canonical array datum.

Member Function Documentation

void Vertica::Array::ArrayWriter::commit ( )
inline

Finalize the array value. This sets the number of array elements and copies data from the temp scratch space into the target column.

Referenced by Vertica::copyBlockColumn().

BlockWriter& Vertica::Array::ArrayWriter::operator* ( )
inline
Returns
a reference to the wrapped BlockWriter
const BlockWriter& Vertica::Array::ArrayWriter::operator* ( ) const
inline
Returns
a reference to the wrapped BlockWriter
BlockWriter* Vertica::Array::ArrayWriter::operator-> ( )
inline
Returns
a pointer to the wrapped BlockWriter
BlockWriter* Vertica::Array::ArrayWriter::operator-> ( ) const
inline
Returns
a pointer to the wrapped BlockWriter
void Vertica::Array::ArrayWriter::setEmpty ( )
inline

Write an empty array value. This sets the number of array elements to zero.