Describes where an output column is coming from. More...
#include <sqludr.h>
Public Member Functions | |
| ProvenanceInfo () | |
| ProvenanceInfo (int inputTableNum, int inputColNum) | |
| int | getInputTableNum () const |
| int | getInputColumnNum () const |
| bool | isFromInputTable (int inputTableNum=-1) const |
Describes where an output column is coming from.
Points to input table and input column number that is the source of a column. This must only be used if the result column always has the exact same value as the current value of the corresponding input column.
| ProvenanceInfo::ProvenanceInfo | ( | ) |
Default constructor, generates unspecified provenance.
| ProvenanceInfo::ProvenanceInfo | ( | int | inputTableNum, | |
| int | inputColNum | |||
| ) |
Constructor to link an output column to a specific input column
This constructor can be used to produce a "passthru column". An easier way to do this is the UDRInvocationInfo::addPassThruColumns() method.
| inputTableNum | Input table number (0 for a TMUDF with a single table-valued input, the most common case). | |
| inputColNum | Column number in intput table "inputTableNum" that is the source of the output column to be produced. |
| int ProvenanceInfo::getInputColumnNum | ( | ) | const |
Get the input column number.
| int ProvenanceInfo::getInputTableNum | ( | ) | const |
Get the input table number.
| bool ProvenanceInfo::isFromInputTable | ( | int | inputTableNum = -1 |
) | const |
Test whether the column comes from any or from a specific table-valued input.
| inputTableNum | -1 to test for any table-valued input, or a specific input table number. |
1.6.1