C++ SDK Documentation  23.4.0
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 ()
 
BlockWritergetElementBlock ()
 
const BlockWritergetElementBlock () const
 
BlockWriteroperator* ()
 
const BlockWriteroperator* () const
 
BlockWriteroperator-> ()
 
BlockWriteroperator-> () const
 

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