C++ SDK Documentation
9.0
|
Iterator interface for reading rows in a Vertica block. More...
Public Member Functions | |
BlockReader (size_t narg, int rowcount, const int *indices) | |
void | copy (const VerticaBlock &other) |
const vbool * | getBoolPtr (size_t idx) const |
Get a pointer to a BOOLEAN value from the input row. More... | |
const vbool & | getBoolRef (size_t idx) const |
Get a reference to a BOOLEAN value from the input row. More... | |
template<class T > | |
const T * | getColPtr (size_t idx) const |
template<class T > | |
T * | getColPtrForWrite (size_t idx) |
template<class T > | |
const T & | getColRef (size_t idx) |
template<class T > | |
T & | getColRefForWrite (size_t idx) |
int | getColStride (size_t idx) const |
const EE::DataArea * | getDataArea (size_t idx) |
const DateADT * | getDatePtr (size_t idx) const |
Get a pointer to a DATE value from the input row. More... | |
const DateADT & | getDateRef (size_t idx) const |
Get a reference to a DATE value from the input row. More... | |
const vfloat * | getFloatPtr (size_t idx) const |
Get a pointer to a FLOAT value from the input row. More... | |
const vfloat & | getFloatRef (size_t idx) const |
Get a reference to a FLOAT value from the input row. More... | |
const Interval * | getIntervalPtr (size_t idx) const |
Get a pointer to an INTERVAL value from the input row. More... | |
const Interval & | getIntervalRef (size_t idx) const |
Get a reference to an INTERVAL value from the input row. More... | |
const IntervalYM * | getIntervalYMPtr (size_t idx) const |
Get a pointer to a INTERVAL YEAR TO MONTH value from the input row. More... | |
const IntervalYM & | getIntervalYMRef (size_t idx) const |
Get a reference to an INTERVAL YEAR TO MONTH value from the input row. More... | |
const vint * | getIntPtr (size_t idx) const |
Get a pointer to an INTEGER value from the input row. More... | |
const vint & | getIntRef (size_t idx) const |
Get a reference to an INTEGER value from the input row. More... | |
size_t | getNumCols () const |
const VNumeric * | getNumericPtr (size_t idx) |
Get a pointer to a VNumeric value from the input row. More... | |
const VNumeric & | getNumericRef (size_t idx) |
Get a reference to a VNumeric value from the input row. More... | |
int | getNumRows () const |
const VString * | getStringPtr (size_t idx) |
Get a pointer to a VString value from the input row. More... | |
const VString & | getStringRef (size_t idx) |
Get a reference to an VString value from the input row. More... | |
const TimeADT * | getTimePtr (size_t idx) const |
Get a pointer to a TIME value from the input row. More... | |
const TimeADT & | getTimeRef (size_t idx) const |
Get a reference to a TIME value from the input row. More... | |
const Timestamp * | getTimestampPtr (size_t idx) const |
Get a pointer to a TIMESTAMP value from the input row. More... | |
const Timestamp & | getTimestampRef (size_t idx) const |
Get a reference to a TIMESTAMP value from the input row. More... | |
const TimestampTz * | getTimestampTzPtr (size_t idx) const |
Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row. More... | |
const TimestampTz & | getTimestampTzRef (size_t idx) const |
Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row. More... | |
const TimeTzADT * | getTimeTzPtr (size_t idx) const |
Get a pointer to a TIME WITH TIMEZONE value from the input row. More... | |
const TimeTzADT & | getTimeTzRef (size_t idx) const |
Get a reference to a TIME WITH TIMEZONE value from the input row. More... | |
const SizedColumnTypes & | getTypeMetaData () const |
SizedColumnTypes & | getTypeMetaData () |
const VUuid * | getUuidPtr (size_t idx) |
Get a pointer to a VUuid value from the input row. More... | |
const VUuid & | getUuidRef (size_t idx) |
Get a reference to a VUuid value from the input row. More... | |
void * | getVoidPtr () |
bool | isNull (int col) |
Check if the idx'th argument is null. More... | |
bool | next () |
void | setDataArea (size_t idx, void *dataarea) |
Protected Member Functions | |
void | addCol (char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
void | addCol (const char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
bool | checkStringUserBlockInfo (size_t idx) const |
bool | checkTimeUserBlockInfo (size_t idx) const |
void | reset () |
void | resetIndex () |
void | setRowCount (int rowCount) |
void | validateStringColumn (size_t idx, const VString &s, size_t colLength) const |
Protected Attributes | |
std::vector< char * > | cols |
std::vector< int > | colstrides |
int | count |
int | index |
const int * | indices |
size_t | ncols |
int | nrows |
std::vector< BaseDataOID > | processBlockUserInfoVector |
std::vector< VString > | svWrappers |
SizedColumnTypes | typeMetaData |
std::vector< VUuid > | uuWrappers |
std::vector< VNumeric > | vnWrappers |
Friends | |
class | EE::VEval |
class | VerticaRInterface |
Iterator interface for reading rows in a Vertica block.
This class provides the input to the ScalarFunction.processBlock() function. You extract values from the input row using data type specific functions to extract each column value. You can also determine the number of columns and their data types, if your processBlock function does not have hard-coded input expectations.
|
inlineprotectedinherited |
Add the location for reading a particular argument.
arg | The base location to find data. |
colstride | The stride between data instances. |
dt | The type of input. |
fieldname | the name of the field |
|
inline |
Get a pointer to a BOOLEAN value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a BOOLEAN value from the input row.
idx | The column number to retrieve from the input row. |
|
inlineinherited |
Example:
Referenced by Vertica::PartitionWriter::copyFromInput().
|
inlineinherited |
Example: const vint a = arg_reader->getColRef<vint>(0);
|
inline |
Get a pointer to a DATE value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a DATE value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to a FLOAT value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a FLOAT value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to an INTERVAL value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to an INTERVAL value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to a INTERVAL YEAR TO MONTH value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to an INTERVAL YEAR TO MONTH value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to an INTEGER value from the input row.
idx | The column number to retrieve from the input row. |
Example:
|
inline |
Get a reference to an INTEGER value from the input row.
idx | The column number to retrieve from the input row. |
Example:
|
inlineinherited |
|
inline |
Get a pointer to a VNumeric value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
|
inlineinherited |
|
inline |
Get a pointer to a VString value from the input row.
idx | The column number to retrieve from the input row. |
Referenced by Vertica::PartitionWriter::copyFromInput().
|
inline |
|
inline |
Get a pointer to a TIME value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a TIME value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to a TIMESTAMP value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a TIMESTAMP value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row.
idx | The column number to retrieve from the input row. |
|
inline |
Get a pointer to a TIME WITH TIMEZONE value from the input row.
idx | The column number in the input row to retrieve. |
|
inline |
Get a reference to a TIME WITH TIMEZONE value from the input row.
idx | The column number to retrieve from the input row. |
|
inlineinherited |
Referenced by Vertica::PartitionWriter::copyFromInput().
|
inlineinherited |
|
inline |
|
inline |
|
inline |
Check if the idx'th argument is null.
col | The column number in the row to check for null |
|
inline |
Advance to the next record.