C++ SDK Documentation  24.1.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

◆ commit()

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().

◆ operator*() [1/2]

BlockWriter& Vertica::Array::ArrayWriter::operator* ( )
inline
Returns
a reference to the wrapped BlockWriter

◆ operator*() [2/2]

const BlockWriter& Vertica::Array::ArrayWriter::operator* ( ) const
inline
Returns
a reference to the wrapped BlockWriter

◆ operator->() [1/2]

BlockWriter* Vertica::Array::ArrayWriter::operator-> ( )
inline
Returns
a pointer to the wrapped BlockWriter

◆ operator->() [2/2]

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