Inheritance diagram for Vertica::ValueRangeWriter:

Public Member Functions | |
| bool | canHaveNulls (size_t idx) |
| Indicates if there can be NULL values in the range. | |
| bool | canHaveNulls () |
| template<class T, BoundType b> | |
| const T * | getColPtr (size_t idx) |
| template<class T, BoundType b> | |
| T * | getColPtrForWrite (size_t idx) |
| VNumeric & | getNumericRefLo () |
| Gets a VNumeric object reference to set the range lower bound. | |
| VNumeric & | getNumericRefUp () |
| Gets a VNumeric object reference to set the range upper bound. | |
| size_t | getNumRanges () const |
| Retrieve the number of range arguments. | |
| const VerticaType & | getRangeType (size_t idx) const |
| Returns the data type of the values in a range. | |
| EE::ValueSort | getSortedness (size_t idx) |
| Gets the sortedness of values in a range. | |
| EE::ValueSort | getSortedness () |
| VString & | getStringRefLo () |
| Gets a VString object reference to set the range lower bound. | |
| VString & | getStringRefUp () |
| Gets a VString object reference to set the range upper bound. | |
| bool | hasBounds () |
| void | setBoolLo (vbool r) |
| Sets a range bound as a BOOLEAN value. | |
| void | setBoolUp (vbool r) |
| void | setCanHaveNulls (bool u) |
| void | setDateLo (DateADT r) |
| Sets a range bound as a DATE value. | |
| void | setDateUp (DateADT r) |
| void | setFloatLo (vfloat r) |
| Sets a range bound as a FLOAT value to the output row. | |
| void | setFloatUp (vfloat r) |
| void | setHasBounds () |
| Lets Vertica know that this output range has user-defined bounds. | |
| void | setIntervalLo (Interval r) |
| Sets a range bound as an INTERVAL value. | |
| void | setIntervalUp (Interval r) |
| void | setIntervalYMLo (IntervalYM r) |
| Sets a range bound as an INTERVAL YEAR TO MONTH value. | |
| void | setIntervalYMUp (IntervalYM r) |
| void | setIntLo (vint r) |
| Sets a range bound as an INTEGER value. | |
| void | setIntUp (vint r) |
| void | setNull () |
| Sets to NULL all values in this range. | |
| void | setSortedness (EE::ValueSort s) |
| void | setTimeLo (TimeADT r) |
| Sets a range bound as a TIMESTAMP value. | |
| void | setTimestampLo (Timestamp r) |
| Sets a range bound as a TIMESTAMP value. | |
| void | setTimestampTzLo (TimestampTz r) |
| Sets a range bound as a TIMESTAMP WITH TIMEZONE value. | |
| void | setTimestampTzUp (TimestampTz r) |
| void | setTimestampUp (Timestamp r) |
| void | setTimeTzLo (TimeTzADT r) |
| Sets a range bound as a TIMESTAMP WITH TIMEZONE value. | |
| void | setTimeTzUp (TimeTzADT r) |
| void | setTimeUp (TimeADT r) |
| ValueRangeWriter (char *outLoBound, char *outUpBound, const VerticaType &dt, EE::ValueSort sortedness, bool canHaveNulls) | |
Protected Types | |
| enum | BoundType { LO_BOUND, UP_BOUND } |
| LO_BOUND | |
| UP_BOUND | |
Protected Member Functions | |
| void | addArg (char *loBound, char *upBound, const VerticaType &dt, EE::ValueSort sortedness, bool canHaveNulls) |
| void | setCanHaveNulls (size_t idx, bool u) |
| Set a flag to indicate that some values in this range can be NULL. | |
| void | setSortedness (size_t idx, EE::ValueSort s) |
| Set the sortedness of values in the range. | |
Protected Attributes | |
| size_t | narg |
| std::vector< ValueRange > | ranges |
| std::vector< VString > | svWrappersLo |
| std::vector< VString > | svWrappersUp |
| std::vector< VNumeric > | vnWrappersLo |
| std::vector< VNumeric > | vnWrappersUp |
Friends | |
| class | EE::VEval |
Instances of this class are used to allow UDSF developers specify the output range of UDSFs via the optional ScalarFunction::getOutputRange() function.
| void Vertica::VerticaValueRange::addArg | ( | char * | loBound, | |
| char * | upBound, | |||
| const VerticaType & | dt, | |||
| EE::ValueSort | sortedness, | |||
| bool | canHaveNulls | |||
| ) | [inline, protected, inherited] |
Add a value range of a particular function argument
| loBound | Base location to find the lower bound data | |
| upBound | Base location to find the upper bound data | |
| sortedness | Sortedness of values in the range | |
| dt | The data type of range bounds |
| bool Vertica::VerticaValueRange::canHaveNulls | ( | size_t | idx | ) | [inline, inherited] |
Indicates if there can be NULL values in the range.
| idx | the range argument number. |
| VNumeric& Vertica::ValueRangeWriter::getNumericRefLo | ( | ) | [inline] |
| VNumeric& Vertica::ValueRangeWriter::getNumericRefUp | ( | ) | [inline] |
| size_t Vertica::VerticaValueRange::getNumRanges | ( | ) | const [inline, inherited] |
Retrieve the number of range arguments.
| const VerticaType& Vertica::VerticaValueRange::getRangeType | ( | size_t | idx | ) | const [inline, inherited] |
Returns the data type of the values in a range.
| idx | The index of the range |
| EE::ValueSort Vertica::VerticaValueRange::getSortedness | ( | size_t | idx | ) | [inline, inherited] |
Gets the sortedness of values in a range.
| idx | the range argument number. |
| VString& Vertica::ValueRangeWriter::getStringRefLo | ( | ) | [inline] |
| VString& Vertica::ValueRangeWriter::getStringRefUp | ( | ) | [inline] |
| void Vertica::ValueRangeWriter::setBoolLo | ( | vbool | r | ) | [inline] |
Sets a range bound as a BOOLEAN value.
| r | The BOOLEAN value to set the range bound. |
| void Vertica::VerticaValueRange::setCanHaveNulls | ( | size_t | idx, | |
| bool | u | |||
| ) | [inline, protected, inherited] |
Set a flag to indicate that some values in this range can be NULL.
| idx | The argument range number. | |
| u | true if there can be NULL values in the range, else false. |
| void Vertica::ValueRangeWriter::setDateLo | ( | DateADT | r | ) | [inline] |
Sets a range bound as a DATE value.
| r | The DATE value to set the range bound. |
| void Vertica::ValueRangeWriter::setFloatLo | ( | vfloat | r | ) | [inline] |
Sets a range bound as a FLOAT value to the output row.
| r | The FLOAT value to set the range bound. |
| void Vertica::ValueRangeWriter::setIntervalLo | ( | Interval | r | ) | [inline] |
Sets a range bound as an INTERVAL value.
| r | The INTERVAL value to set the range bound. |
| void Vertica::ValueRangeWriter::setIntervalYMLo | ( | IntervalYM | r | ) | [inline] |
Sets a range bound as an INTERVAL YEAR TO MONTH value.
| r | The INTERVAL YEAR TO MONTH value to set the range bound. |
| void Vertica::ValueRangeWriter::setIntLo | ( | vint | r | ) | [inline] |
Sets a range bound as an INTEGER value.
| r | The INTEGER value to set the range bound. |
| void Vertica::ValueRangeWriter::setNull | ( | ) | [inline] |
Sets to NULL all values in this range.
| void Vertica::VerticaValueRange::setSortedness | ( | size_t | idx, | |
| EE::ValueSort | s | |||
| ) | [inline, protected, inherited] |
Set the sortedness of values in the range.
| idx | The range argument number. | |
| s | The sortedness value to set. Possible values are: EE::SORT_UNORDERED - Unsorted EE::SORT_MONOTONIC_INCREASING - Ascending EE::SORT_MONOTONIC_DECREASING - Descending EE::SORT_CONSTANT - Single value |
range.setSortedness(0, EE:SORT_CONSTANT); // defines a single-valued range
| void Vertica::ValueRangeWriter::setTimeLo | ( | TimeADT | r | ) | [inline] |
Sets a range bound as a TIMESTAMP value.
| r | The TIMESTAMP value to set the range bound. |
| void Vertica::ValueRangeWriter::setTimestampLo | ( | Timestamp | r | ) | [inline] |
Sets a range bound as a TIMESTAMP value.
| r | The TIMESTAMP value to set the range bound. |
| void Vertica::ValueRangeWriter::setTimestampTzLo | ( | TimestampTz | r | ) | [inline] |
Sets a range bound as a TIMESTAMP WITH TIMEZONE value.
| r | The TIMESTAMP WITH TIMEZONE value to set the range bound. |
| void Vertica::ValueRangeWriter::setTimeTzLo | ( | TimeTzADT | r | ) | [inline] |
Sets a range bound as a TIMESTAMP WITH TIMEZONE value.
| r | The TIMESTAMP WITH TIMEZONE value to set the range bound. |