本文整理汇总了C++中PersistentTable::debug方法的典型用法代码示例。如果您正苦于以下问题:C++ PersistentTable::debug方法的具体用法?C++ PersistentTable::debug怎么用?C++ PersistentTable::debug使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PersistentTable
的用法示例。
在下文中一共展示了PersistentTable::debug方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: p_execute
bool UpdateExecutor::p_execute(const NValueArray ¶ms) {
assert(m_inputTable);
// target table should be persistenttable
PersistentTable* targetTable = dynamic_cast<PersistentTable*>(m_node->getTargetTable());
assert(targetTable);
TableTuple targetTuple = TableTuple(targetTable->schema());
VOLT_TRACE("INPUT TABLE: %s\n", m_inputTable->debug().c_str());
VOLT_TRACE("TARGET TABLE - BEFORE: %s\n", targetTable->debug().c_str());
// determine which indices are updated by this executor
// iterate through all target table indices and see if they contain
// columns mutated by this executor
std::vector<TableIndex*> indexesToUpdate;
const std::vector<TableIndex*>& allIndexes = targetTable->allIndexes();
BOOST_FOREACH(TableIndex *index, allIndexes) {
bool indexKeyUpdated = false;
BOOST_FOREACH(int colIndex, index->getColumnIndices()) {
std::pair<int, int> updateColInfo; // needs to be here because of macro failure
BOOST_FOREACH(updateColInfo, m_inputTargetMap) {
if (updateColInfo.second == colIndex) {
indexKeyUpdated = true;
break;
}
}
if (indexKeyUpdated) break;
}
if (indexKeyUpdated) {
indexesToUpdate.push_back(index);
}
}