Inheritance diagram for Vertica::VerticaValueRange:

Public Member Functions | |
| bool | canHaveNulls (size_t idx) |
| Indicates if there can be NULL values in the range. | |
| template<class T, BoundType b> | |
| const T * | getColPtr (size_t idx) |
| template<class T, BoundType b> | |
| T * | getColPtrForWrite (size_t idx) |
| 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. | |
| VerticaValueRange (size_t narg) | |
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 |
Classes | |
| struct | ValueRange |
Instances of this class are used to allow UDSF developers to specify what the output range of of the function is. The UDSF developer is responsible to override ScalarFunction::getOutputRange() and set the function's output range using the knowledge of the input argument ranges passed as references to ScalarFunction::getOutputRange().
| void Vertica::VerticaValueRange::addArg | ( | char * | loBound, | |
| char * | upBound, | |||
| const VerticaType & | dt, | |||
| EE::ValueSort | sortedness, | |||
| bool | canHaveNulls | |||
| ) | [inline, protected] |
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] |
Indicates if there can be NULL values in the range.
| idx | the range argument number. |
| size_t Vertica::VerticaValueRange::getNumRanges | ( | ) | const [inline] |
Retrieve the number of range arguments.
| const VerticaType& Vertica::VerticaValueRange::getRangeType | ( | size_t | idx | ) | const [inline] |
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] |
Gets the sortedness of values in a range.
| idx | the range argument number. |
| void Vertica::VerticaValueRange::setCanHaveNulls | ( | size_t | idx, | |
| bool | u | |||
| ) | [inline, protected] |
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::VerticaValueRange::setSortedness | ( | size_t | idx, | |
| EE::ValueSort | s | |||
| ) | [inline, protected] |
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