本文整理汇总了C++中PersistentTable::databaseId方法的典型用法代码示例。如果您正苦于以下问题:C++ PersistentTable::databaseId方法的具体用法?C++ PersistentTable::databaseId怎么用?C++ PersistentTable::databaseId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PersistentTable
的用法示例。
在下文中一共展示了PersistentTable::databaseId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CopyOnWriteIterator
CopyOnWriteContext::CopyOnWriteContext(
PersistentTable &table,
TupleSerializer &serializer,
int32_t partitionId,
const std::vector<std::string> &predicateStrings,
int64_t totalTuples,
bool doDelete) :
m_table(table),
m_backedUpTuples(TableFactory::getCopiedTempTable(table.databaseId(),
"COW of " + table.name(),
&table, NULL)),
m_serializer(serializer),
m_pool(2097152, 320),
m_blocks(m_table.m_data),
m_iterator(new CopyOnWriteIterator(&table, m_blocks.begin(), m_blocks.end())),
m_maxTupleLength(serializer.getMaxSerializedTupleSize(table.schema())),
m_tuple(table.schema()),
m_finishedTableScan(false),
m_partitionId(partitionId),
m_totalTuples(totalTuples),
m_tuplesRemaining(totalTuples),
m_blocksCompacted(0),
m_serializationBatches(0),
m_inserts(0),
m_updates(0),
m_doDelete(doDelete)
{
// Parse predicate strings. The factory type determines the kind of
// predicates that get generated.
// Throws an exception to be handled by caller on errors.
std::ostringstream errmsg;
if (!m_predicates.parseStrings(predicateStrings, errmsg)) {
throwFatalException("CopyOnWriteContext() failed to parse predicate strings.");
}
}
示例2: TableStreamerContext
CopyOnWriteContext::CopyOnWriteContext(
PersistentTable &table,
TupleSerializer &serializer,
int32_t partitionId,
const std::vector<std::string> &predicateStrings,
int64_t totalTuples) :
TableStreamerContext(table, predicateStrings),
m_backedUpTuples(TableFactory::getCopiedTempTable(table.databaseId(),
"COW of " + table.name(),
&table, NULL)),
m_serializer(serializer),
m_pool(2097152, 320),
m_blocks(getTable().m_data),
m_iterator(new CopyOnWriteIterator(&table, m_blocks.begin(), m_blocks.end())),
m_maxTupleLength(serializer.getMaxSerializedTupleSize(table.schema())),
m_tuple(table.schema()),
m_finishedTableScan(false),
m_partitionId(partitionId),
m_totalTuples(totalTuples),
m_tuplesRemaining(totalTuples),
m_blocksCompacted(0),
m_serializationBatches(0),
m_inserts(0),
m_updates(0)
{}