Inheritance diagram for Vertica::BlockReader:

Public Member Functions | |
| BlockReader (size_t narg, int rowcount, const int *indices) | |
| const vbool * | getBoolPtr (size_t idx) |
| Get a pointer to a BOOLEAN value from the input row. | |
| const vbool & | getBoolRef (size_t idx) |
| Get a reference to a BOOLEAN value from the input row. | |
| template<class T> | |
| const T * | getColPtr (size_t idx) |
| 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) |
| const EE::DataArea * | getDataArea (size_t idx) |
| const DateADT * | getDatePtr (size_t idx) |
| Get a pointer to a DATE value from the input row. | |
| const DateADT & | getDateRef (size_t idx) |
| Get a reference to a DATE value from the input row. | |
| const vfloat * | getFloatPtr (size_t idx) |
| Get a pointer to a FLOAT value from the input row. | |
| const vfloat & | getFloatRef (size_t idx) |
| Get a reference to a FLOAT value from the input row. | |
| const Interval * | getIntervalPtr (size_t idx) |
| Get a pointer to an INTERVAL value from the input row. | |
| const Interval & | getIntervalRef (size_t idx) |
| Get a reference to an INTERVAL value from the input row. | |
| const IntervalYM * | getIntervalYMPtr (size_t idx) |
| Get a pointer to a INTERVAL YEAR TO MONTH value from the input row. | |
| const IntervalYM & | getIntervalYMRef (size_t idx) |
| Get a reference to an INTERVAL YEAR TO MONTH value from the input row. | |
| const vint * | getIntPtr (size_t idx) |
| Get a pointer to an INTEGER value from the input row. | |
| const vint & | getIntRef (size_t idx) |
| Get a reference to an INTEGER value from the input row. | |
| size_t | getNumCols () const |
| const VNumeric * | getNumericPtr (size_t idx) |
| Get a pointer to a VNumeric value from the input row. | |
| const VNumeric & | getNumericRef (size_t idx) |
| Get a reference to a VNumeric value from the input row. | |
| int | getNumRows () const |
| const VString * | getStringPtr (size_t idx) |
| Get a pointer to a VString value from the input row. | |
| const VString & | getStringRef (size_t idx) |
| Get a reference to an VString value from the input row. | |
| const TimeADT * | getTimePtr (size_t idx) |
| Get a pointer to a TIME value from the input row. | |
| const TimeADT & | getTimeRef (size_t idx) |
| Get a reference to a TIME value from the input row. | |
| const Timestamp * | getTimestampPtr (size_t idx) |
| Get a pointer to a TIMESTAMP value from the input row. | |
| const Timestamp & | getTimestampRef (size_t idx) |
| Get a reference to a TIMESTAMP value from the input row. | |
| const TimestampTz * | getTimestampTzPtr (size_t idx) |
| Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row. | |
| const TimestampTz & | getTimestampTzRef (size_t idx) |
| Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row. | |
| const TimeTzADT * | getTimeTzPtr (size_t idx) |
| Get a pointer to a TIME WITH TIMEZONE value from the input row. | |
| const TimeTzADT & | getTimeTzRef (size_t idx) |
| Get a reference to a TIME WITH TIMEZONE value from the input row. | |
| SizedColumnTypes & | getTypeMetaData () |
| const SizedColumnTypes & | getTypeMetaData () const |
| void * | getVoidPtr () |
| bool | isNull (int col) |
| Check if the idx'th argument is null. | |
| bool | next () |
| void | setDataArea (size_t idx, void *dataarea) |
Protected Member Functions | |
| void | addCol (const char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
| void | addCol (char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
| void | validateStringColumn (size_t idx, const VString &s, const VerticaType &t) |
| friend | void::copyDataToPlanPool (VerticaBlock *block) |
Protected Attributes | |
| std::vector< char * > | cols |
| std::vector< int > | colstrides |
| int | count |
| int | index |
| const int * | indices |
| size_t | ncols |
| int | nrows |
| std::vector< VString > | svWrappers |
| SizedColumnTypes | typeMetaData |
| std::vector< VNumeric > | vnWrappers |
Friends | |
| class | ::EE::UserDefinedAggregate |
| class | ::EE::UserDefinedAnalytic |
| class | ::EE::UserDefinedProcess |
| class | ::EE::UserDefinedTransform |
| class | AggregateFunction |
| struct | CPPExecContext |
| class | EE::VEval |
| class | VerticaBlockSerializer |
| class | VerticaRInterface |
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.
| void Vertica::VerticaBlock::addCol | ( | char * | arg, | |
| int | colstride, | |||
| const VerticaType & | dt, | |||
| const std::string | fieldName = "" | |||
| ) | [inline, protected, inherited] |
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 |
| const vbool* Vertica::BlockReader::getBoolPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a BOOLEAN value from the input row.
| idx | The column number in the input row to retrieve. |
| const vbool& Vertica::BlockReader::getBoolRef | ( | size_t | idx | ) | [inline] |
Get a reference to a BOOLEAN value from the input row.
| idx | The column number to retrieve from the input row. |
| const T* Vertica::VerticaBlock::getColPtr | ( | size_t | idx | ) | [inline, inherited] |
| const T& Vertica::VerticaBlock::getColRef | ( | size_t | idx | ) | [inline, inherited] |
| const DateADT* Vertica::BlockReader::getDatePtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a DATE value from the input row.
| idx | The column number in the input row to retrieve. |
| const DateADT& Vertica::BlockReader::getDateRef | ( | size_t | idx | ) | [inline] |
Get a reference to a DATE value from the input row.
| idx | The column number to retrieve from the input row. |
| const vfloat* Vertica::BlockReader::getFloatPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a FLOAT value from the input row.
| idx | The column number in the input row to retrieve. |
| const vfloat& Vertica::BlockReader::getFloatRef | ( | size_t | idx | ) | [inline] |
Get a reference to a FLOAT value from the input row.
| idx | The column number to retrieve from the input row. |
| const Interval* Vertica::BlockReader::getIntervalPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to an INTERVAL value from the input row.
| idx | The column number in the input row to retrieve. |
| const Interval& Vertica::BlockReader::getIntervalRef | ( | size_t | idx | ) | [inline] |
Get a reference to an INTERVAL value from the input row.
| idx | The column number to retrieve from the input row. |
| const IntervalYM* Vertica::BlockReader::getIntervalYMPtr | ( | size_t | idx | ) | [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. |
| const IntervalYM& Vertica::BlockReader::getIntervalYMRef | ( | size_t | idx | ) | [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. |
| const vint* Vertica::BlockReader::getIntPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to an INTEGER value from the input row.
| idx | The column number to retrieve from the input row. |
const vint *a = arg_reader->getIntPtr(0);
| const vint& Vertica::BlockReader::getIntRef | ( | size_t | idx | ) | [inline] |
Get a reference to an INTEGER value from the input row.
| idx | The column number to retrieve from the input row. |
const vint a = arg_reader->getIntRef(0);
| size_t Vertica::VerticaBlock::getNumCols | ( | ) | const [inline, inherited] |
| const VNumeric* Vertica::BlockReader::getNumericPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a VNumeric value from the input row.
| idx | The column number to retrieve from the input row. |
| const VNumeric& Vertica::BlockReader::getNumericRef | ( | size_t | idx | ) | [inline] |
| int Vertica::VerticaBlock::getNumRows | ( | ) | const [inline, inherited] |
| const VString* Vertica::BlockReader::getStringPtr | ( | size_t | idx | ) | [inline] |
| const VString& Vertica::BlockReader::getStringRef | ( | size_t | idx | ) | [inline] |
| const TimeADT* Vertica::BlockReader::getTimePtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a TIME value from the input row.
| idx | The column number in the input row to retrieve. |
| const TimeADT& Vertica::BlockReader::getTimeRef | ( | size_t | idx | ) | [inline] |
Get a reference to a TIME value from the input row.
| idx | The column number to retrieve from the input row. |
| const Timestamp* Vertica::BlockReader::getTimestampPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a TIMESTAMP value from the input row.
| idx | The column number in the input row to retrieve. |
| const Timestamp& Vertica::BlockReader::getTimestampRef | ( | size_t | idx | ) | [inline] |
Get a reference to a TIMESTAMP value from the input row.
| idx | The column number to retrieve from the input row. |
| const TimestampTz* Vertica::BlockReader::getTimestampTzPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row.
| idx | The column number in the input row to retrieve. |
| const TimestampTz& Vertica::BlockReader::getTimestampTzRef | ( | size_t | idx | ) | [inline] |
Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row.
| idx | The column number to retrieve from the input row. |
| const TimeTzADT* Vertica::BlockReader::getTimeTzPtr | ( | size_t | idx | ) | [inline] |
Get a pointer to a TIME WITH TIMEZONE value from the input row.
| idx | The column number in the input row to retrieve. |
| const TimeTzADT& Vertica::BlockReader::getTimeTzRef | ( | size_t | idx | ) | [inline] |
Get a reference to a TIME WITH TIMEZONE value from the input row.
| idx | The column number to retrieve from the input row. |
| SizedColumnTypes& Vertica::VerticaBlock::getTypeMetaData | ( | ) | [inline, inherited] |
| const SizedColumnTypes& Vertica::VerticaBlock::getTypeMetaData | ( | ) | const [inline, inherited] |
| bool Vertica::BlockReader::isNull | ( | int | col | ) | [inline] |
Check if the idx'th argument is null.
| col | The column number in the row to check for null |
| bool Vertica::BlockReader::next | ( | ) | [inline] |
Advance to the next record.
Reimplemented in Vertica::PartitionReader.