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

Public Member Functions

VStringappend ()
 
void appendNull ()
 
vsize getMaxSize ()
 
const VStringgetRef (size_t offset_from_start)
 
int getStrideLength ()
 

Protected Member Functions

 PartitionWriterStringColumn (int _stridelength, char *_start, char *_end, vsize maxlen)
 
char * getAndAdvance ()
 
const char * getPtr (size_t offset_from_start)
 
size_t getWrittenElementCount ()
 

Protected Attributes

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

Friends

class PartitionWriterColumns
 

Member Function Documentation

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

vsize Vertica::PartitionWriterStringColumn::getMaxSize ( )
inline

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

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

int Vertica::BasePartitionWriterColumn::getStrideLength ( )
inlineinherited

Returns the size of each element in the column