Home
last modified time | relevance | path

Searched refs:DB (Results 1 – 25 of 188) sorted by relevance

12345678

/rocksdb-6.9/db/
Dinternal_stats.cc359 {DB::Properties::kLevelStats,
361 {DB::Properties::kStats,
363 {DB::Properties::kCFStats,
369 {DB::Properties::kCFFileHistogram,
372 {DB::Properties::kDBStats,
374 {DB::Properties::kSSTables,
418 {DB::Properties::kEstimateNumKeys,
427 {DB::Properties::kNumSnapshots,
436 {DB::Properties::kNumLiveVersions,
451 {DB::Properties::kBaseLevel,
[all …]
Ddb_logical_block_size_cache_test.cc70 DB* db; in TEST_F()
102 DB* db; in TEST_F()
133 DB* db; in TEST_F()
179 DB* db; in TEST_F()
237 DB* db; in TEST_F()
323 DB* db; in TEST_F()
352 ASSERT_OK(DB::Open( in TEST_F()
396 DB* db0; in TEST_F()
411 DB* db1; in TEST_F()
462 DB* db0; in TEST_F()
[all …]
Dcompact_files_test.cc78 DB* db = nullptr; in TEST_F()
80 Status s = DB::Open(options, db_name_, &db); in TEST_F()
137 DB* db = nullptr; in TEST_F()
176 DB* db = nullptr; in TEST_F()
212 DB* db = nullptr; in TEST_F()
250 s = DB::Open(options, db_name_, &db); in TEST_F()
270 void SetDB(DB* db) { in TEST_F()
277 DB* db_; in TEST_F()
287 DB* db = nullptr; in TEST_F()
336 DB* db = nullptr; in TEST_F()
[all …]
Ddb_properties_test.cc153 DB::Properties::kEstimateTableReadersMem, &before_flush_trm)); in TEST_F()
159 DB::Properties::kEstimateTableReadersMem, &after_flush_trm)); in TEST_F()
634 handles_[1], DB::Properties::kNumImmutableMemTableFlushed, &num)); in TEST_F()
1432 DB::Properties::kEstimateOldestKeyTime, &oldest_key_time)); in TEST_F()
1493 void OnCompactionCompleted(DB* db, in TEST_F()
1500 bool ok = db->GetIntProperty(DB::Properties::kTotalSstFilesSize, in TEST_F()
1566 void SetDB(DB* db) { db_ = db; } in TEST_F()
1576 DB* db_ = nullptr; in TEST_F()
1608 db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
1616 db_->GetIntProperty(DB::Properties::kBlockCacheCapacity, &value)); in TEST_F()
[all …]
Dmerge_test.cc76 DB* db; in OpenDb()
90 s = DB::Open(options, dbname, &db); in OpenDb()
94 s = DB::Open(options, dbname, &db); in OpenDb()
100 return std::shared_ptr<DB>(db); in OpenDb()
111 std::shared_ptr<DB> db_;
120 explicit Counters(std::shared_ptr<DB> db, uint64_t defaultCount = 0) in Counters()
243 void dumpDb(DB* db) { in dumpDb()
322 void testPartialMerge(Counters* counters, DB* db, size_t max_merge, in testPartialMerge()
360 void testSingleBatchSuccessiveMerge(DB* db, size_t max_num_merges, in testSingleBatchSuccessiveMerge()
457 DB* reopen_db; in runTest()
[all …]
Dexperimental.cc15 Status SuggestCompactRange(DB* db, ColumnFamilyHandle* column_family, in SuggestCompactRange()
24 Status PromoteL0(DB* db, ColumnFamilyHandle* column_family, int target_level) { in PromoteL0()
33 Status SuggestCompactRange(DB* /*db*/, ColumnFamilyHandle* /*column_family*/,
38 Status PromoteL0(DB* /*db*/, ColumnFamilyHandle* /*column_family*/,
45 Status SuggestCompactRange(DB* db, const Slice* begin, const Slice* end) { in SuggestCompactRange()
Dcompacted_db_impl.h24 DB** dbptr);
27 using DB::Get;
31 using DB::MultiGet;
85 using DB::IngestExternalFile;
92 using DB::CreateColumnFamilyWithImport;
103 friend class DB;
Dconvenience.cc16 void CancelAllBackgroundWork(DB* db, bool wait) { in CancelAllBackgroundWork()
17 (static_cast_with_check<DBImpl, DB>(db->GetRootDB())) in CancelAllBackgroundWork()
21 Status DeleteFilesInRange(DB* db, ColumnFamilyHandle* column_family, in DeleteFilesInRange()
28 Status DeleteFilesInRanges(DB* db, ColumnFamilyHandle* column_family, in DeleteFilesInRanges()
31 return (static_cast_with_check<DBImpl, DB>(db->GetRootDB())) in DeleteFilesInRanges()
/rocksdb-6.9/include/rocksdb/utilities/
Dstackable_db.h77 using DB::Put;
84 using DB::Get;
102 using DB::MultiGet;
150 using DB::KeyMayExist;
158 using DB::Delete;
172 using DB::Merge;
183 using DB::NewIterator;
203 using DB::GetProperty;
306 using DB::GetOptions;
316 using DB::Flush;
[all …]
Dwrite_batch_with_index.h30 class DB; variable
206 Status GetFromBatchAndDB(DB* db, const ReadOptions& read_options,
210 Status GetFromBatchAndDB(DB* db, const ReadOptions& read_options,
213 Status GetFromBatchAndDB(DB* db, const ReadOptions& read_options,
218 Status GetFromBatchAndDB(DB* db, const ReadOptions& read_options,
222 void MultiGetFromBatchAndDB(DB* db, const ReadOptions& read_options,
264 Status GetFromBatchAndDB(DB* db, const ReadOptions& read_options,
267 void MultiGetFromBatchAndDB(DB* db, const ReadOptions& read_options,
/rocksdb-6.9/java/rocksjni/
Drocksjni.cc43 ROCKSDB_NAMESPACE::DB* db = nullptr; in rocksdb_open_helper()
80 ROCKSDB_NAMESPACE::DB** db) { in Java_org_rocksdb_RocksDB_openROnly__JLjava_lang_String_2()
92 ROCKSDB_NAMESPACE::DB**)> in rocksdb_open_helper()
133 ROCKSDB_NAMESPACE::DB* db = nullptr; in rocksdb_open_helper()
185 ROCKSDB_NAMESPACE::DB** db) { in Java_org_rocksdb_RocksDB_openROnly__JLjava_lang_String_2_3_3B_3J()
205 ROCKSDB_NAMESPACE::DB**)) & in Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2_3_3B_3J()
206 ROCKSDB_NAMESPACE::DB::Open); in Java_org_rocksdb_RocksDB_open__JLjava_lang_String_2_3_3B_3J()
751 JNIEnv* env, ROCKSDB_NAMESPACE::DB* db, in rocksdb_single_delete_helper()
870 JNIEnv* env, ROCKSDB_NAMESPACE::DB* db, in rocksdb_delete_range_helper()
930 JNIEnv* env, ROCKSDB_NAMESPACE::DB* db, in rocksdb_get_helper_direct()
[all …]
/rocksdb-6.9/db/db_impl/
Ddb_impl.h139 using DB::Resume;
142 using DB::Put;
146 using DB::Merge;
150 using DB::Delete;
158 using DB::Write;
162 using DB::Get;
185 using DB::MultiGet;
311 using DB::SetOptions;
333 using DB::Flush;
429 using DB::EndTrace;
[all …]
Ddb_impl_readonly.cc129 Status DB::OpenForReadOnly(const Options& options, const std::string& dbname, in OpenForReadOnly()
130 DB** dbptr, bool /*error_if_log_file_exist*/) { in OpenForReadOnly()
147 s = DB::OpenForReadOnly(db_options, dbname, column_families, &handles, dbptr); in OpenForReadOnly()
157 Status DB::OpenForReadOnly( in OpenForReadOnly()
160 std::vector<ColumnFamilyHandle*>* handles, DB** dbptr, in OpenForReadOnly()
208 Status DB::OpenForReadOnly(const Options& /*options*/,
209 const std::string& /*dbname*/, DB** /*dbptr*/,
214 Status DB::OpenForReadOnly(
217 std::vector<ColumnFamilyHandle*>* /*handles*/, DB** /*dbptr*/,
/rocksdb-6.9/docs/_posts/
D2014-03-27-how-to-backup-rocksdb.markdown10 In RocksDB, we have implemented an easy way to backup your DB. Here is a simple example:
18 DB* db;
19 DB::Open(Options(), "/tmp/rocksdb", &db);
28 …create a backup of your DB in "/tmp/rocksdb_backup". Creating new BackupableDB consumes DB* and yo…
41 …arameter is the location of log files (In some DBs they are different from DB directory, but usual…
51 DB* db;
52 DB::Open(Options(), "/tmp/rocksdb", &db);
77 `RestoreDBFromLatestBackup()` will restore the DB from the latest consistent backup. An alternative…
84 Let's say you want to backup your DB to HDFS. There is an option in `BackupableDBOptions` to set `b…
92 …e, `BackupableDB` will first issue a memtable flush and only then copy the DB files to the backup …
[all …]
D2017-01-06-rocksdb-5-0-1-released.markdown12 * Introduce DB::DeleteRange for optimized deletion of large ranges of contiguous keys.
15 …usion if statistics object is shared among RocksDB instance. Alternatively DB::GetLatestSequenceNu…
19 …* DB::AddFile() is deprecated and is replaced with DB::IngestExternalFile(). DB::IngestExternalFil…
23 …* Add avoid_flush_during_shutdown option, which speeds up DB shutdown by not flushing unpersisted …
D2015-01-16-migrating-from-leveldb-to-rocksdb-2.markdown23 DB *db;
30 Status s = DB::Open(opt, "/tmp/mydb", &db);
46 DB *db;
56 Status s = DB::Open(rocksdb_options, "/tmp/mydb_rocks", &db);
75 - Status s = DB::Open(opt, "/tmp/mydb", &db);
79 + Status s = DB::Open(rocksdb_options, "/tmp/mydb_rocks", &db);
96 DB *db;
106 Status s = DB::Open(opt, "/tmp/mydb_rocks", &db);
D2017-02-17-bulkoad-ingest-sst-file.markdown10 … of RocksDB is writing to RocksDB, Writes happen when user call (DB::Put, DB::Write, DB::Delete ..…
11 - User insert a new key/value by calling DB::Put() (or DB::Write())
20 - Write all of our keys and values into SST file outside of the DB
39 // Ingest the external SST file into the DB
/rocksdb-6.9/utilities/checkpoint/
Dcheckpoint_test.cc44 DB* db_;
203 return DB::Open(options, dbname_, &db_); in TryReopen()
264 DB* snapshotDB; in TEST_F()
277 ASSERT_OK(DB::Open(options, dbname_, &db_)); in TEST_F()
433 DB* snapshotDB; in TEST_F()
471 ASSERT_OK(DB::Open(options, snapshot_name_, in TEST_F()
497 DB* snapshotDB; in TEST_F()
579 DB* snapshotDB; in TEST_F()
739 DB* snapshot_db; in TEST_F()
762 DB* snapshot_db = nullptr; in TEST_F()
[all …]
/rocksdb-6.9/examples/
Dcompact_files_example.cc29 DB* db, const std::string& cf_name) = 0;
38 DB* _db, Compactor* _compactor, in CompactionTask()
51 DB* db;
74 DB* db, const FlushJobInfo& info) override { in OnFlushCompleted()
87 DB* db, const std::string& cf_name) override { in PickCompaction()
146 DB* db = nullptr; in main()
148 Status s = DB::Open(options, kDBPath, &db); in main()
/rocksdb-6.9/tools/
Dcheck_format_compatible.sh100 echo ==== Error ingesting external SST in $2 to DB at $1 ====
116 echo == Generating DB with extern SST file in "$checkout_obj" ...
136 echo == Build "$checkout_obj" and try to open DB generated using $checkout_flag
150 echo == Generating DB from "$checkout_obj" ...
164 echo == Generate compare base DB to $compare_base_db_dir
169 echo == Opening DB from "$checkout_obj" using debug build of $checkout_flag ...
175 echo == Build "$checkout_obj" and try to open DB generated using $checkout_flag...
184 …echo == Build "$checkout_obj" and try to open DB generated using $checkout_flag with its options...
Ddb_repl_stress.cc37 DB* db; // Assumption DB is Open'ed already.
48 DB* db = t->db; in DataPumpThreadBody()
63 DB* db;
69 DB* db = t->db; in ReplicationThreadBody()
115 DB* db; in main()
118 Status s = DB::Open(options, default_db_path, &db); in main()
/rocksdb-6.9/utilities/
Denv_librados_test.cc333 DB* db; in TEST_F()
381 DB* db1; in TEST_F()
416 DB* db2; in TEST_F()
459 DB* db1; in TEST_F()
497 DB* db2; in TEST_F()
543 DB* db1; in TEST_F()
581 DB* db2; in TEST_F()
628 DB* db1; in TEST_F()
678 DB* db2; in TEST_F()
875 DB* db; in TEST_F()
[all …]
/rocksdb-6.9/utilities/blob_db/
Dblob_db_listener.h24 void OnFlushBegin(DB* /*db*/, const FlushJobInfo& /*info*/) override { in OnFlushBegin() argument
29 void OnFlushCompleted(DB* /*db*/, const FlushJobInfo& /*info*/) override { in OnFlushCompleted() argument
34 void OnCompactionCompleted(DB* /*db*/, in OnCompactionCompleted() argument
49 void OnFlushCompleted(DB* db, const FlushJobInfo& info) override { in OnFlushCompleted()
56 void OnCompactionCompleted(DB* db, const CompactionJobInfo& info) override { in OnCompactionCompleted()
/rocksdb-6.9/test_util/
Dtransaction_test_util.h17 class DB; variable
72 bool DBInsert(DB* db);
75 static Status DBGet(DB* db, Transaction* txn, ReadOptions& read_options,
81 static Status Verify(DB* db, uint16_t num_sets, uint64_t num_keys_per_set = 0,
127 bool DoInsert(DB* db, Transaction* txn, bool is_optimistic);
/rocksdb-6.9/include/rocksdb/
Dsnapshot.h12 class DB; variable
34 explicit ManagedSnapshot(DB* db);
37 ManagedSnapshot(DB* db, const Snapshot* _snapshot);
44 DB* db_;

12345678