// *************************************************************************** // Get the output list element, that its output item (column or expression) // has the ID id (or NULL if not found). // *************************************************************************** const QROutputPtr MVDetails::getOutputForID(const NAString& id) { QRElementPtr output = outputByIDHash_.getFirstValue(&id); if (output == NULL) return NULL; return output->downCastToQROutput(); }
// *************************************************************************** // Get the output list element, that represents an expression, that has // this column name as one of its input columns (or NULL if not found). // *************************************************************************** const QROutputPtr MVDetails::getOutputByInputColumns(const NAString& id, const NAString& name, CollHeap* heap) { const NAString* idName = calcIDQualifiedColumnName(id, name, heap); QRElementPtr output = outputByInputColumns_.getFirstValue(idName); delete idName; if (output == NULL) return NULL; return output->downCastToQROutput(); }
// *************************************************************************** // Get the output list element, that represents the output expression that // matches text (or NULL if not found). // *************************************************************************** const QROutputPtr MVDetails::getOutputByExprText(const NAString& text) { QRElementPtr output = outputByExprText_.getFirstValue(&text); QRLogger::log(CAT_MATCHTST_MVDETAILS, LL_DEBUG, "Checking for output expression: %s, %s.", text.data(), (output == NULL) ? "Not found it" : "Found it"); if (output == NULL) return NULL; else return output->downCastToQROutput(); }