当前位置: 首页>>代码示例>>C++>>正文


C++ MetaData::findIndexOffset方法代码示例

本文整理汇总了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;
 }
开发者ID:PedroLai,项目名称:mongo,代码行数:7,代码来源:rocks_collection_catalog_entry.cpp

示例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;
}
开发者ID:ShaneHarvey,项目名称:mongo,代码行数:7,代码来源:kv_collection_catalog_entry.cpp

示例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();
}
开发者ID:ShaneHarvey,项目名称:mongo,代码行数:7,代码来源:kv_collection_catalog_entry.cpp

示例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();
 }
开发者ID:PedroLai,项目名称:mongo,代码行数:7,代码来源:rocks_collection_catalog_entry.cpp

示例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;
 }
开发者ID:PedroLai,项目名称:mongo,代码行数:7,代码来源:rocks_collection_catalog_entry.cpp

示例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;
}
开发者ID:DINKIN,项目名称:mongo,代码行数:7,代码来源:bson_collection_catalog_entry.cpp

示例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;
}
开发者ID:DINKIN,项目名称:mongo,代码行数:7,代码来源:bson_collection_catalog_entry.cpp

示例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;
}
开发者ID:ShaneHarvey,项目名称:mongo,代码行数:7,代码来源:kv_collection_catalog_entry.cpp

示例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;
}
开发者ID:ShaneHarvey,项目名称:mongo,代码行数:7,代码来源:kv_collection_catalog_entry.cpp

示例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);
}
开发者ID:AlexOreshkevich,项目名称:mongo,代码行数:7,代码来源:kv_collection_catalog_entry.cpp

示例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();
}
开发者ID:DINKIN,项目名称:mongo,代码行数:8,代码来源:bson_collection_catalog_entry.cpp

示例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;
}
开发者ID:DavidAlphaFox,项目名称:mongodb,代码行数:8,代码来源:bson_collection_catalog_entry.cpp

示例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;
}
开发者ID:DavidAlphaFox,项目名称:mongodb,代码行数:8,代码来源:bson_collection_catalog_entry.cpp

示例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);
}
开发者ID:AlexOreshkevich,项目名称:mongo,代码行数:9,代码来源:kv_collection_catalog_entry.cpp

示例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);
}
开发者ID:AlexOreshkevich,项目名称:mongo,代码行数:9,代码来源:kv_collection_catalog_entry.cpp


注:本文中的MetaData::findIndexOffset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。