Inheritance diagram for Vertica::ParamWriter:

Public Member Functions | |
| void | addParameter (std::string paramName, const char *arg, const VerticaType &dt) |
| bool | containsParameter (std::string paramName) |
| Function to see if the ParamReader has a value for the parameter. | |
| const vbool * | getBoolPtr (std::string paramName) |
| Get a pointer to a BOOLEAN value from the input row. | |
| const vbool & | getBoolRef (std::string paramName) |
| 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 (std::string paramName) |
| Get a pointer to a DATE value from the input row. | |
| const DateADT & | getDateRef (std::string paramName) |
| Get a reference to a DATE value from the input row. | |
| const vfloat * | getFloatPtr (std::string paramName) |
| Get a pointer to a FLOAT value from the input row. | |
| const vfloat & | getFloatRef (std::string paramName) |
| Get a reference to a FLOAT value from the input row. | |
| size_t | getIndex (std::string paramName) |
| const Interval * | getIntervalPtr (std::string paramName) |
| Get a pointer to an INTERVAL value from the input row. | |
| const Interval & | getIntervalRef (std::string paramName) |
| Get a reference to an INTERVAL value from the input row. | |
| const IntervalYM * | getIntervalYMPtr (std::string paramName) |
| Get a pointer to a INTERVAL YEAR TO MONTH value from the input row. | |
| const IntervalYM & | getIntervalYMRef (std::string paramName) |
| Get a reference to an INTERVAL YEAR TO MONTH value from the input row. | |
| const vint * | getIntPtr (std::string paramName) |
| Get a pointer to an INTEGER value from the input row. | |
| const vint & | getIntRef (std::string paramName) |
| Get a reference to an INTEGER value from the input row. | |
| VString & | getLongStringRef (std::string fieldName) |
| Allocates a new VString object to use as output. Sets it to be a 32mb LONG type by default. | |
| size_t | getNumCols () const |
| const VNumeric * | getNumericPtr (std::string paramName) |
| Get a pointer to a VNumeric value from the input row. | |
| VNumeric & | getNumericRef (std::string fieldName) |
| Allocate a new VNumeric object to use as output. | |
| int | getNumRows () const |
| std::vector< std::string > | getParamNames () |
| Return all names of parameters stored in this ParamReader. | |
| const VString * | getStringPtr (std::string paramName) |
| Get a pointer to a VString value from the input row. | |
| VString & | getStringRef (std::string fieldName) |
| Allocates a new VString object to use as output. | |
| const TimeADT * | getTimePtr (std::string paramName) |
| Get a pointer to a TIME value from the input row. | |
| const TimeADT & | getTimeRef (std::string paramName) |
| Get a reference to a TIME value from the input row. | |
| const Timestamp * | getTimestampPtr (std::string paramName) |
| Get a pointer to a TIMESTAMP value from the input row. | |
| const Timestamp & | getTimestampRef (std::string paramName) |
| Get a reference to a TIMESTAMP value from the input row. | |
| const TimestampTz * | getTimestampTzPtr (std::string paramName) |
| Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row. | |
| const TimestampTz & | getTimestampTzRef (std::string paramName) |
| Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row. | |
| const TimeTzADT * | getTimeTzPtr (std::string paramName) |
| Get a pointer to a TIME WITH TIMEZONE value from the input row. | |
| const TimeTzADT & | getTimeTzRef (std::string paramName) |
| Get a reference to a TIME WITH TIMEZONE value from the input row. | |
| VerticaType | getType (std::string paramName) |
| Return the type of the given parameter. | |
| SizedColumnTypes & | getTypeMetaData () |
| const SizedColumnTypes & | getTypeMetaData () const |
| void * | getVoidPtr () |
| bool | isEmpty () const |
| Returns true if there are no parameters. | |
| ParamWriter (VTAllocator *allocator=NULL) | |
| void | setAllocator (VTAllocator *allocator) |
| Sets the allocator to be used to allocate variable size param values such as VString. Given allocator live longer than this ParamWriter. | |
| void | setBool (std::string fieldName, vbool r) |
| Adds a BOOLEAN value to the output row. | |
| void | setDataArea (size_t idx, void *dataarea) |
| void | setDate (std::string fieldName, DateADT r) |
| Adds a BOOLEAN value to the output row. | |
| void | setFloat (std::string fieldName, vfloat r) |
| Adds a FLOAT value to the output row. | |
| void | setInt (std::string fieldName, vint r) |
| Adds an INTEGER value to the output row. | |
| void | setInterval (std::string fieldName, Interval r, int32 precision, int32 range) |
| Adds an INTERVAL value to the output row. | |
| void | setIntervalYM (std::string fieldName, IntervalYM r, int32 range) |
| Adds an INTERVAL YEAR TO MONTH value to the output row. | |
| void | setTime (std::string fieldName, TimeADT r, int32 precision) |
| Adds a TIME value to the output row. | |
| void | setTimestamp (std::string fieldName, Timestamp r, int32 precision) |
| Adds a TIMESTAMP value to the output row. | |
| void | setTimestampTz (std::string fieldName, TimestampTz r, int32 precision) |
| Adds a TIMESTAMP WITH TIMEZONE value to the output row. | |
| void | setTimeTz (std::string fieldName, TimeTzADT r, int32 precision) |
| Adds a TIME WITH TIMEZONE value to the output row. | |
Public Attributes | |
| std::map< std::string, size_t > | paramNameToIndex |
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 | VerticaBlockSerializer |
This class provides the output rows that ScalarFunction.processBlock() writes to.
| 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 |
| void Vertica::ParamReader::addParameter | ( | std::string | paramName, | |
| const char * | arg, | |||
| const VerticaType & | dt | |||
| ) | [inline, inherited] |
Add a parameter to the block and stores it name and corresponding index in the paramNameToIndex map
| const vbool* Vertica::ParamReader::getBoolPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a BOOLEAN value from the input row.
| paramName | The name of the parameter to retrieve |
| const vbool& Vertica::ParamReader::getBoolRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a BOOLEAN value from the input row.
| paramName | The name of the parameter to retrieve |
| const T* Vertica::VerticaBlock::getColPtr | ( | size_t | idx | ) | [inline, inherited] |
| const T& Vertica::VerticaBlock::getColRef | ( | size_t | idx | ) | [inline, inherited] |
| const DateADT* Vertica::ParamReader::getDatePtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a DATE value from the input row.
| paramName | The name of the parameter to retrieve |
| const DateADT& Vertica::ParamReader::getDateRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a DATE value from the input row.
| paramName | The name of the parameter to retrieve |
| const vfloat* Vertica::ParamReader::getFloatPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a FLOAT value from the input row.
| paramName | The name of the parameter to retrieve |
| const vfloat& Vertica::ParamReader::getFloatRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a FLOAT value from the input row.
| paramName | The name of the parameter to retrieve |
| const Interval* Vertica::ParamReader::getIntervalPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to an INTERVAL value from the input row.
| paramName | The name of the parameter to retrieve |
| const Interval& Vertica::ParamReader::getIntervalRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to an INTERVAL value from the input row.
| paramName | The name of the parameter to retrieve |
| const IntervalYM* Vertica::ParamReader::getIntervalYMPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a INTERVAL YEAR TO MONTH value from the input row.
| paramName | The name of the parameter to retrieve |
| const IntervalYM& Vertica::ParamReader::getIntervalYMRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to an INTERVAL YEAR TO MONTH value from the input row.
| paramName | The name of the parameter to retrieve |
| const vint* Vertica::ParamReader::getIntPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to an INTEGER value from the input row.
| paramName | The name of the parameter to retrieve |
vint *a = arg_reader->getIntPtr("max");
| const vint& Vertica::ParamReader::getIntRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to an INTEGER value from the input row.
| paramName | The name of the parameter to retrieve |
vint a = arg_reader->getIntRef("max");
| VString& Vertica::ParamWriter::getLongStringRef | ( | std::string | fieldName | ) | [inline] |
| size_t Vertica::VerticaBlock::getNumCols | ( | ) | const [inline, inherited] |
| const VNumeric* Vertica::ParamReader::getNumericPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a VNumeric value from the input row.
| paramName | The name of the parameter to retrieve |
| VNumeric& Vertica::ParamWriter::getNumericRef | ( | std::string | fieldName | ) | [inline] |
Allocate a new VNumeric object to use as output.
Reimplemented from Vertica::ParamReader.
| int Vertica::VerticaBlock::getNumRows | ( | ) | const [inline, inherited] |
| const VString* Vertica::ParamReader::getStringPtr | ( | std::string | paramName | ) | [inline, inherited] |
| VString& Vertica::ParamWriter::getStringRef | ( | std::string | fieldName | ) | [inline] |
Allocates a new VString object to use as output.
Reimplemented from Vertica::ParamReader.
| const TimeADT* Vertica::ParamReader::getTimePtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a TIME value from the input row.
| paramName | The name of the parameter to retrieve |
| const TimeADT& Vertica::ParamReader::getTimeRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a TIME value from the input row.
| paramName | The name of the parameter to retrieve |
| const Timestamp* Vertica::ParamReader::getTimestampPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a TIMESTAMP value from the input row.
| paramName | The name of the parameter to retrieve |
| const Timestamp& Vertica::ParamReader::getTimestampRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a TIMESTAMP value from the input row.
| paramName | The name of the parameter to retrieve |
| const TimestampTz* Vertica::ParamReader::getTimestampTzPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a TIMESTAMP WITH TIMEZONE value from the input row.
| paramName | The name of the parameter to retrieve |
| const TimestampTz& Vertica::ParamReader::getTimestampTzRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a TIMESTAMP WITH TIMEZONE value from the input row.
| paramName | The name of the parameter to retrieve |
| const TimeTzADT* Vertica::ParamReader::getTimeTzPtr | ( | std::string | paramName | ) | [inline, inherited] |
Get a pointer to a TIME WITH TIMEZONE value from the input row.
| paramName | The name of the parameter to retrieve |
| const TimeTzADT& Vertica::ParamReader::getTimeTzRef | ( | std::string | paramName | ) | [inline, inherited] |
Get a reference to a TIME WITH TIMEZONE value from the input row.
| paramName | The name of the parameter to retrieve |
| SizedColumnTypes& Vertica::VerticaBlock::getTypeMetaData | ( | ) | [inline, inherited] |
| const SizedColumnTypes& Vertica::VerticaBlock::getTypeMetaData | ( | ) | const [inline, inherited] |
| void Vertica::ParamWriter::setAllocator | ( | VTAllocator * | allocator | ) | [inline] |
Sets the allocator to be used to allocate variable size param values such as VString. Given allocator live longer than this ParamWriter.
| allocator | Used to allocate param values. |
| void Vertica::ParamWriter::setBool | ( | std::string | fieldName, | |
| vbool | r | |||
| ) | [inline] |
Adds a BOOLEAN value to the output row.
| r | The BOOLEAN value to insert into the output row. |
| void Vertica::ParamWriter::setDate | ( | std::string | fieldName, | |
| DateADT | r | |||
| ) | [inline] |
Adds a BOOLEAN value to the output row.
| r | The BOOLEAN value to insert into the output row. |
| void Vertica::ParamWriter::setFloat | ( | std::string | fieldName, | |
| vfloat | r | |||
| ) | [inline] |
Adds a FLOAT value to the output row.
| r | The FLOAT value to insert into the output row. |
| void Vertica::ParamWriter::setInt | ( | std::string | fieldName, | |
| vint | r | |||
| ) | [inline] |
Adds an INTEGER value to the output row.
| r | The INTEGER value to insert into the output row. |
| void Vertica::ParamWriter::setInterval | ( | std::string | fieldName, | |
| Interval | r, | |||
| int32 | precision, | |||
| int32 | range | |||
| ) | [inline] |
Adds an INTERVAL value to the output row.
| r | The INTERVAL value to insert into the output row. |
| void Vertica::ParamWriter::setIntervalYM | ( | std::string | fieldName, | |
| IntervalYM | r, | |||
| int32 | range | |||
| ) | [inline] |
Adds an INTERVAL YEAR TO MONTH value to the output row.
| r | The INTERVAL YEAR TO MONTH value to insert into the output row. |
Adds a TIME value to the output row.
| r | The TIME value to insert into the output row. |
| void Vertica::ParamWriter::setTimestamp | ( | std::string | fieldName, | |
| Timestamp | r, | |||
| int32 | precision | |||
| ) | [inline] |
Adds a TIMESTAMP value to the output row.
| r | The TIMESTAMP value to insert into the output row. |
| void Vertica::ParamWriter::setTimestampTz | ( | std::string | fieldName, | |
| TimestampTz | r, | |||
| int32 | precision | |||
| ) | [inline] |
Adds a TIMESTAMP WITH TIMEZONE value to the output row.
| r | The TIMESTAMP WITH TIMEZONE value to insert into the output row. |
| void Vertica::ParamWriter::setTimeTz | ( | std::string | fieldName, | |
| TimeTzADT | r, | |||
| int32 | precision | |||
| ) | [inline] |
Adds a TIME WITH TIMEZONE value to the output row.
| r | The TIME WITH TIMEZONE value to insert into the output row. |
std::map<std::string, size_t> Vertica::ParamReader::paramNameToIndex [inherited] |
Bookkeepinp to make a parameter and its position in the block