Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 162) sorted by relevance

1234567

/rocksdb-6.9/db/
Drange_tombstone_fragmenter.cc86 auto it = cur_end_keys.begin(); in FragmentTombstones()
105 cur_end_keys.erase(cur_end_keys.begin(), it); in FragmentTombstones()
121 std::sort(seqnums_to_flush.begin(), seqnums_to_flush.end(), in FragmentTombstones()
136 std::lower_bound(snapshots.begin(), snapshots.end(), seq); in FragmentTombstones()
137 if (upper_bound_it == snapshots.begin()) { in FragmentTombstones()
151 seq_set_.insert(seqnums_to_flush.begin(), seqnums_to_flush.end()); in FragmentTombstones()
249 pos_ = tombstones_->begin(); in SeekToFirst()
258 pos_ = tombstones_->begin(); in SeekToTopFirst()
322 if (pos_ == tombstones_->begin()) { in SeekForPrevToCoveringTombstone()
352 if (pos_ == tombstones_->begin()) { in ScanBackwardToVisibleTombstone()
[all …]
Dexperimental.cc16 const Slice* begin, const Slice* end) { in SuggestCompactRange() argument
21 return db->SuggestCompactRange(column_family, begin, end); in SuggestCompactRange()
45 Status SuggestCompactRange(DB* db, const Slice* begin, const Slice* end) { in SuggestCompactRange() argument
46 return SuggestCompactRange(db, db->DefaultColumnFamily(), begin, end); in SuggestCompactRange()
Dlog_writer.cc63 bool begin = true; in AddRecord() local
90 if (begin && end) { in AddRecord()
92 } else if (begin) { in AddRecord()
103 begin = false; in AddRecord()
Ddb_iter_stress_test.cc200 data->entries.begin(), data->entries.end(), in Seek()
202 iter = (int)(it - data->entries.begin()); in Seek()
212 data->entries.begin(), data->entries.end(), in SeekForPrev()
214 iter = (int)(it - data->entries.begin()); in SeekForPrev()
271 auto it = std::partition_point(data->entries.begin(), data->entries.end(), in FindNextKey()
285 if (it != data->entries.begin()) { in FindNextKey()
300 auto it = std::partition_point(data->entries.begin(), data->entries.end(), in FindValueForCurrentKey()
476 std::sort(data.entries.begin(), data.entries.end()); in TEST_F()
Dpinned_iterators_manager.h61 std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); in ReleasePinnedData()
62 auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); in ReleasePinnedData()
64 for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { in ReleasePinnedData()
Drange_tombstone_fragmenter.h45 std::vector<RangeTombstoneStack>::const_iterator begin() const { in begin() function
46 return tombstones_.begin(); in begin()
54 return std::next(tombstone_seqs_.begin(), idx); in seq_iter()
58 return tombstone_seqs_.begin(); in seq_begin()
Dversion_set.cc366 batch_iter_(range->begin()), in FilePickerMultiGet()
367 batch_iter_prev_(range->begin()), in FilePickerMultiGet()
2705 std::sort(temp->begin(), temp->end(), in SortFileByOverlappingRatio()
2741 std::partial_sort(temp.begin(), temp.begin() + num, temp.end(), in UpdateFilesByCompactionPri()
2914 if (begin != nullptr) { in GetOverlappingInputs()
2915 user_begin = begin->user_key(); in GetOverlappingInputs()
2929 auto iter = index.begin(); in GetOverlappingInputs()
2934 if (begin != nullptr && in GetOverlappingInputs()
2953 if (begin != nullptr && in GetOverlappingInputs()
3018 if (begin != nullptr) { in GetOverlappingInputsRangeBinarySearch()
[all …]
/rocksdb-6.9/memtable/
Dvectorrep.cc119 return std::find(bucket_->begin(), bucket_->end(), key) != bucket_->end(); in Contains()
160 std::sort(bucket_->begin(), bucket_->end(), Compare(compare_)); in DoSort()
161 cit_ = bucket_->begin(); in DoSort()
167 std::sort(bucket_->begin(), bucket_->end(), Compare(compare_)); in DoSort()
168 cit_ = bucket_->begin(); in DoSort()
202 if (cit_ == bucket_->begin()) { in Prev()
219 cit_ = std::equal_range(bucket_->begin(), in Seek()
237 cit_ = bucket_->begin(); in SeekToFirst()
/rocksdb-6.9/util/
Dvector_iterator.h30 std::sort(indices_.begin(), indices_.end(), indexed_cmp_); in VectorIterator()
41 current_ = std::lower_bound(indices_.begin(), indices_.end(), target, in Seek()
43 indices_.begin(); in Seek()
47 current_ = std::lower_bound(indices_.begin(), indices_.end(), target, in SeekForPrev()
49 indices_.begin(); in SeekForPrev()
Dautovector.h247 return *begin();
252 return *begin();
318 iterator begin() { return iterator(this, 0); }
320 const_iterator begin() const { return const_iterator(this, 0); }
332 reverse_iterator rend() { return reverse_iterator(begin()); }
335 return const_reverse_iterator(begin());
352 vect_.assign(other.vect_.begin(), other.vect_.end());
Dautovector_test.cc153 ASSERT_EQ(vec.front(), *vec.begin()); in TEST_F()
155 ASSERT_TRUE(vec.begin() < vec.end()); in TEST_F()
181 auto pos = vec.begin(); in TEST_F()
191 pos = vec.begin(); in TEST_F()
196 ASSERT_TRUE(pos >= vec.begin()); in TEST_F()
199 size_t diff = static_cast<size_t>(pos - vec.begin()); in TEST_F()
251 for (auto pos = v.begin(); pos != end; ++pos) { in BenchmarkSequenceAccess()
Dhash_map.h34 bucket.begin(), bucket.end(), in Contains()
47 bucket.begin(), bucket.end(), in Delete()
61 bucket.begin(), bucket.end(), in Get()
/rocksdb-6.9/db/db_impl/
Ddb_impl_files.cc34 return *pending_outputs_.begin(); in MinObsoleteSstNumberToKeep()
81 job_context->min_pending_output = *pending_outputs_.begin(); in FindObsoleteFiles()
187 while (alive_log_files_.begin()->number < min_log_number) { in FindObsoleteFiles()
188 auto& earliest = *alive_log_files_.begin(); in FindObsoleteFiles()
235 job_context->log_recycle_files.assign(log_recycle_files_.begin(), in FindObsoleteFiles()
314 state.log_recycle_files.begin(), state.log_recycle_files.end()); in PurgeObsoleteFiles()
342 std::sort(candidate_files.begin(), candidate_files.end(), in PurgeObsoleteFiles()
345 std::unique(candidate_files.begin(), candidate_files.end()), in PurgeObsoleteFiles()
522 std::sort(old_info_log_files.begin(), old_info_log_files.end()); in PurgeObsoleteFiles()
681 std::sort(paths.begin(), paths.end()); in CleanupFilesAfterRecovery()
[all …]
Ddb_impl_experimental.cc24 const Slice* begin, const Slice* end) { in SuggestCompactRange() argument
28 if (begin != nullptr) { in SuggestCompactRange()
29 start_key.SetMinPossibleForUserKey(*begin); in SuggestCompactRange()
40 level, begin == nullptr ? nullptr : &start_key, in SuggestCompactRange()
84 std::sort(l0_files.begin(), l0_files.end(), in PromoteL0()
Ddb_impl_compaction_flush.cc91 for (auto it = logs_.begin(); in SyncClosedLogs()
693 Range range(*begin, *end); in CompactRange()
752 level, begin, end); in CompactRange()
1447 if (begin == nullptr || in RunManualCompaction()
1450 manual.begin = nullptr; in RunManualCompaction()
1453 manual.begin = &begin_storage; in RunManualCompaction()
2071 auto cfd = *compaction_queue_.begin(); in PopFirstFromCompactionQueue()
2552 (m->begin ? m->begin->DebugString().c_str() : "(begin)"), in BackgroundCompaction()
2572 (m->begin ? m->begin->DebugString().c_str() : "(begin)"), in BackgroundCompaction()
2937 m->begin = &m->tmp_storage; in BackgroundCompaction()
[all …]
/rocksdb-6.9/include/rocksdb/
Ddb.h536 std::copy(status.begin(), status.end(), statuses);
559 std::copy(status.begin(), status.end(), statuses);
560 std::copy(tss.begin(), tss.end(), timestamps);
600 std::copy(status.begin(), status.end(), statuses);
621 std::copy(status.begin(), status.end(), statuses);
622 std::copy(tss.begin(), tss.end(), timestamps);
1076 const Slice* begin, const Slice* end) { in CompactRange() argument
1077 return CompactRange(options, DefaultColumnFamily(), begin, end); in CompactRange()
1088 return CompactRange(options, column_family, begin, end);
1092 const Slice* begin, const Slice* end, bool change_level = false,
[all …]
Dexperimental.h16 const Slice* begin, const Slice* end);
17 Status SuggestCompactRange(DB* db, const Slice* begin, const Slice* end);
/rocksdb-6.9/table/
Dtable_reader.h107 for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) {
116 virtual Status Prefetch(const Slice* begin = nullptr,
118 (void) begin;
/rocksdb-6.9/utilities/merge_operators/string_append/
Dstringappend2.cc38 for (auto it = merge_in.operand_list.begin(); in FullMergeV2()
58 for (auto it = merge_in.operand_list.begin(); in FullMergeV2()
98 for (std::deque<Slice>::const_iterator it = operand_list.begin() + 1; in _AssocPartialMergeMulti()
/rocksdb-6.9/utilities/transactions/
Dtransaction_lock_mgr.cc115 paths_buffer_.begin(), in Resize()
116 paths_buffer_.begin() + (paths_buffer_.size() - target_size)); in Resize()
138 std::rotate(working.begin(), working.begin() + buffer_idx_, working.end()); in Normalize()
149 std::reverse(working.begin(), working.end()); in PrepareBuffer()
495 std::reverse(path.begin(), path.end()); in IncrementWaiters()
599 auto txn_it = std::find(txns.begin(), txns.end(), txn_id); in UnLockKey()
707 std::sort(cf_ids.begin(), cf_ids.end()); in GetLockStatusData()
/rocksdb-6.9/tools/rdb/
Ddb_wrapper.cc416 ROCKSDB_NAMESPACE::Slice begin = *v8::String::Utf8Value(args[0]->ToString()); in CompactRangeDefault() local
418 db_wrapper->status_ = db_wrapper->db_->CompactRange(&end, &begin); in CompactRangeDefault()
427 ROCKSDB_NAMESPACE::Slice begin = *v8::String::Utf8Value(args[0]->ToString()); in CompactColumnFamily() local
431 db_wrapper->columnFamilies_[cf], &begin, &end); in CompactColumnFamily()
444 ROCKSDB_NAMESPACE::Slice begin = *v8::String::Utf8Value(args[0]->ToString()); in CompactOptions() local
462 &begin, &end, true, target_level, target_path_id in CompactOptions()
476 ROCKSDB_NAMESPACE::Slice begin = *v8::String::Utf8Value(args[0]->ToString()); in CompactAll() local
496 db_wrapper->columnFamilies_[cf], &begin, &end, true, target_level, in CompactAll()
DAPI.md110 # begin (string) - First key in the range to compact.
117 db_obj.compactRange(begin, end)
118 db_obj.compactRange(begin, end, options)
119 db_obj.compactRange(begin, end, column_family)
120 db_obj.compactRange(begin, end, options, column_family)
/rocksdb-6.9/utilities/
Dutil_merge_operators_test.cc23 std::vector<Slice> operands_slice(operands.begin(), operands.end()); in FullMergeV2()
41 std::vector<Slice> operands_slice(operands.begin(), operands.end()); in FullMergeV2()
65 std::deque<Slice> operands_slice(operands.begin(), operands.end()); in PartialMergeMulti()
/rocksdb-6.9/table/block_based/
Dfull_filter_block.cc221 const Status s = GetOrReadFilterBlock(no_io, range->begin()->get_context, in MayMatch()
244 MultiGetRange filter_range(*range, range->begin(), range->end()); in MayMatch()
245 for (auto iter = filter_range.begin(); iter != filter_range.end(); ++iter) { in MayMatch()
259 for (auto iter = filter_range.begin(); iter != filter_range.end(); ++iter) { in MayMatch()
/rocksdb-6.9/java/src/main/java/org/rocksdb/
DRocksDB.java3133 public void compactRange(final byte[] begin, final byte[] end) in compactRange() argument
3135 compactRange(null, begin, end); in compactRange()
3166 final byte[] begin, final byte[] end) throws RocksDBException { in compactRange() argument
3168 begin, begin == null ? -1 : begin.length, in compactRange()
3284 public void compactRange(final byte[] begin, final byte[] end, in compactRange() argument
3287 compactRange(null, begin, end, changeLevel, targetLevel, targetPathId); in compactRange()
3327 final byte[] begin, final byte[] end, final boolean changeLevel, in compactRange() argument
3335 begin, begin == null ? -1 : begin.length, in compactRange()
3357 final byte[] begin, final byte[] end, in compactRange() argument
3360 begin, begin == null ? -1 : begin.length, in compactRange()
[all …]

1234567