Storage Engine API
wiredtiger_index.cpp File Reference
#include "mongo/platform/basic.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_index.h"
#include <set>
#include "mongo/base/checked_cast.h"
#include "mongo/db/catalog/index_catalog_entry.h"
#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/global_settings.h"
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/json.h"
#include "mongo/db/repl/repl_settings.h"
#include "mongo/db/service_context.h"
#include "mongo/db/storage/key_string.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_global_options.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_record_store.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_session_cache.h"
#include "mongo/db/storage/wiredtiger/wiredtiger_util.h"
#include "mongo/stdx/memory.h"
#include "mongo/util/assert_util.h"
#include "mongo/util/fail_point.h"
#include "mongo/util/hex.h"
#include "mongo/util/log.h"
#include "mongo/util/mongoutils/str.h"

Classes

class  mongo::WiredTigerIndex::BulkBuilder
 Base class for WiredTigerIndex bulk builders. More...
 
class  mongo::WiredTigerIndex::StandardBulkBuilder
 Bulk builds a non-unique index. More...
 
class  mongo::WiredTigerIndex::UniqueBulkBuilder
 Bulk builds a unique index. More...
 

Namespaces

 mongo
 Copyright (C) 2014 MongoDB Inc.
 

Macros

#define MONGO_LOG_DEFAULT_COMPONENT   ::mongo::logger::LogComponent::kStorage
 Copyright (C) 2014 MongoDB Inc. More...
 
#define TRACING_ENABLED   0
 
#define TRACE_CURSOR
 
#define TRACE_INDEX
 

Functions

int mongo::index_collator_customize (WT_COLLATOR *coll, WT_SESSION *s, const char *uri, WT_CONFIG_ITEM *metadata, WT_COLLATOR **collp)
 
MONGO_COMPILER_API_EXPORT int mongo::index_collator_extension (WT_CONNECTION *conn, WT_CONFIG_ARG *cfg)
 

Variables

const int mongo::kDataFormatV1KeyStringV0IndexVersionV1 = 6
 
const int mongo::kDataFormatV2KeyStringV1IndexVersionV2 = 8
 
const int mongo::kDataFormatV3KeyStringV0UniqueIndexVersionV1 = 9
 
const int mongo::kDataFormatV4KeyStringV1UniqueIndexVersionV2 = 10
 
const int mongo::kMinimumIndexVersion = kDataFormatV1KeyStringV0IndexVersionV1
 
const int mongo::kMaximumIndexVersion = kDataFormatV4KeyStringV1UniqueIndexVersionV2
 

Macro Definition Documentation

◆ MONGO_LOG_DEFAULT_COMPONENT

#define MONGO_LOG_DEFAULT_COMPONENT   ::mongo::logger::LogComponent::kStorage

Copyright (C) 2014 MongoDB Inc.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

As a special exception, the copyright holders give permission to link the code of portions of this program with the OpenSSL library under certain conditions as described in each individual source file and distribute linked combinations including the program with the OpenSSL library. You must comply with the GNU Affero General Public License in all respects for all of the code used other than as permitted herein. If you modify file(s) with this exception, you may extend this exception to your version of the file(s), but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. If you delete this exception statement from all source files in the program, then also delete it in the license file.

◆ TRACE_CURSOR

#define TRACE_CURSOR
Value:
if (0) \
log()

◆ TRACE_INDEX

#define TRACE_INDEX
Value:
if (0) \
log()

◆ TRACING_ENABLED

#define TRACING_ENABLED   0

Variable Documentation

◆ _cursor

boost::optional<WiredTigerCursor> _cursor
protected

◆ _cursorAtEof

bool _cursorAtEof = false
protected

◆ _endPosition

std::unique_ptr<KeyString> _endPosition
protected

◆ _eof

bool _eof = true
protected

◆ _forward

const bool _forward
protected

◆ _id

RecordId _id
protected

◆ _idx

const WiredTigerIndex& _idx
protected

◆ _key

KeyString _key
protected

◆ _lastMoveWasRestore

bool _lastMoveWasRestore = false
protected

◆ _opCtx

OperationContext* _opCtx
protected

◆ _prefix

KVPrefix _prefix
protected

◆ _query

KeyString _query
protected

◆ _typeBits

KeyString::TypeBits _typeBits
protected