C++ SDK Documentation  24.2.0
Vertica::PartitionWriterStringColumn Class Reference
Inheritance diagram for Vertica::PartitionWriterStringColumn:
Inheritance graph
Collaboration diagram for Vertica::PartitionWriterStringColumn:
Collaboration graph

Public Member Functions

 PartitionWriterStringColumn (int _stridelength, char *_start, char *_end, const VString &wrapperTemplate)
 
VStringappend ()
 
void appendNull ()
 
char * getAndAdvance ()
 
vsize getMaxSize ()
 
const char * getPtr (size_t offset_from_start)
 
const VStringgetRef (size_t offset_from_start)
 
int getStrideLength ()
 
size_t getWrittenElementCount ()
 

Protected Member Functions

void rejectRows (std::set< uint64 > &rejectedRows)
 

Protected Attributes

char * curr
 
const char * end
 
const char * start
 
const int stridelength
 
VString wrapper
 

Friends

class PartitionWriterColumns
 

Member Function Documentation

◆ append()

VString& Vertica::PartitionWriterStringColumn::append ( )
inline

Returns a reference to the next element to write. Setting its members will update the data in the PartitionWriter

Note that the underlying object is re-used, so the object references should not be retained between calls to append

◆ getMaxSize()

vsize Vertica::PartitionWriterStringColumn::getMaxSize ( )
inline

Returns the maximum size that can be set in the objects returned from append()

◆ getRef()

const VString& Vertica::PartitionWriterStringColumn::getRef ( size_t  offset_from_start)
inline

Returns a reference to a previously written element.

Note that the underlying object is re-used, so the object references should not be retained between calls to append

◆ getStrideLength()

int Vertica::BasePartitionWriterColumn::getStrideLength ( )
inlineinherited

Returns the size of each element in the column