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

Public Member Functions

VNumericappend ()
 
void appendNull ()
 
void directCopy (uint64 *src, size_t elementsToCopy, int srcTypMod, size_t elementSize)
 
const VNumericgetRef (size_t offset_from_start)
 
int getStrideLength ()
 
int getTypmod ()
 

Protected Member Functions

 PartitionWriterNumericColumn (int _stridelength, char *_start, char *_end, const VNumeric &wrapperTemplate)
 
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
 
VNumeric wrapper
 

Friends

class PartitionWriterColumns
 

Member Function Documentation

VNumeric& Vertica::PartitionWriterNumericColumn::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

void Vertica::PartitionWriterNumericColumn::directCopy ( uint64 src,
size_t  elementsToCopy,
int  srcTypMod,
size_t  elementSize 
)
inline

Elements must be in 2s compliment and in a compatible encoding; check the value of getTypmod to ensure that encodings are identical

const VNumeric& Vertica::PartitionWriterNumericColumn::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