本文整理汇总了C++中MetaData::findIndexOffset方法的典型用法代码示例。如果您正苦于以下问题:C++ MetaData::findIndexOffset方法的具体用法?C++ MetaData::findIndexOffset怎么用?C++ MetaData::findIndexOffset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MetaData
的用法示例。
在下文中一共展示了MetaData::findIndexOffset方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: isIndexMultikey
bool RocksCollectionCatalogEntry::isIndexMultikey( const StringData& indexName) const {
MetaData md;
_getMetaData( &md );
int offset = md.findIndexOffset( indexName );
invariant( offset >= 0 );
return md.indexes[offset].multikey;
}
示例2: isTwoPhaseIndexBuild
bool KVCollectionCatalogEntry::isTwoPhaseIndexBuild(OperationContext* opCtx,
StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].runTwoPhaseBuild;
}
示例3: isIndexBuildDraining
bool KVCollectionCatalogEntry::isIndexBuildDraining(OperationContext* opCtx,
StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].buildPhase == kIndexBuildDraining.toString();
}
示例4: getIndexSpec
BSONObj RocksCollectionCatalogEntry::getIndexSpec( const StringData& indexName ) const {
MetaData md;
_getMetaData( &md );
int offset = md.findIndexOffset( indexName );
invariant( offset >= 0 );
return md.indexes[offset].spec.getOwned();
}
示例5: getIndexHead
DiskLoc RocksCollectionCatalogEntry::getIndexHead( const StringData& indexName ) const {
MetaData md;
_getMetaData( &md );
int offset = md.findIndexOffset( indexName );
invariant( offset >= 0 );
return md.indexes[offset].head;
}
示例6: isIndexReady
bool BSONCollectionCatalogEntry::isIndexReady(OperationContext* opCtx, StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].ready;
}
示例7: getIndexPrefix
KVPrefix BSONCollectionCatalogEntry::getIndexPrefix(OperationContext* opCtx,
StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].prefix;
}
示例8: getIndexBuildVersion
long KVCollectionCatalogEntry::getIndexBuildVersion(OperationContext* opCtx,
StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].versionOfBuild;
}
示例9: invariant
boost::optional<std::string> KVCollectionCatalogEntry::getConstraintViolationsIdent(
OperationContext* opCtx, StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].constraintViolationsIdent;
}
示例10: indexBuildSuccess
void KVCollectionCatalogEntry::indexBuildSuccess(OperationContext* txn, StringData indexName) {
MetaData md = _getMetaData(txn);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
md.indexes[offset].ready = true;
_catalog->putMetaData(txn, ns().toString(), md);
}
示例11: getIndexSpec
BSONObj BSONCollectionCatalogEntry::getIndexSpec(OperationContext* opCtx,
StringData indexName) const {
MetaData md = _getMetaData(opCtx);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].spec.getOwned();
}
示例12: getIndexHead
RecordId BSONCollectionCatalogEntry::getIndexHead(OperationContext* txn,
const StringData& indexName) const {
MetaData md = _getMetaData(txn);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].head;
}
示例13: isIndexMultikey
bool BSONCollectionCatalogEntry::isIndexMultikey(OperationContext* txn,
const StringData& indexName) const {
MetaData md = _getMetaData(txn);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
return md.indexes[offset].multikey;
}
示例14: updateTTLSetting
void KVCollectionCatalogEntry::updateTTLSetting(OperationContext* txn,
StringData idxName,
long long newExpireSeconds) {
MetaData md = _getMetaData(txn);
int offset = md.findIndexOffset(idxName);
invariant(offset >= 0);
md.indexes[offset].updateTTLSetting(newExpireSeconds);
_catalog->putMetaData(txn, ns().toString(), md);
}
示例15: setIndexHead
void KVCollectionCatalogEntry::setIndexHead(OperationContext* txn,
StringData indexName,
const RecordId& newHead) {
MetaData md = _getMetaData(txn);
int offset = md.findIndexOffset(indexName);
invariant(offset >= 0);
md.indexes[offset].head = newHead;
_catalog->putMetaData(txn, ns().toString(), md);
}