/external/chromium_org/third_party/leveldatabase/src/db/ |
D | dbformat.h | 71 Slice user_key; 76 ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) in ParsedInternalKey() 94 extern bool ParseInternalKey(const Slice& internal_key, 98 inline Slice ExtractUserKey(const Slice& internal_key) { in ExtractUserKey() 100 return Slice(internal_key.data(), internal_key.size() - 8); in ExtractUserKey() 103 inline ValueType ExtractValueType(const Slice& internal_key) { in ExtractValueType() 119 virtual int Compare(const Slice& a, const Slice& b) const; 122 const Slice& limit) const; 137 virtual void CreateFilter(const Slice* keys, int n, std::string* dst) const; 138 virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const; [all …]
|
D | memtable.cc | 14 static Slice GetLengthPrefixedSlice(const char* data) { in GetLengthPrefixedSlice() 18 return Slice(p, len); in GetLengthPrefixedSlice() 36 Slice a = GetLengthPrefixedSlice(aptr); in operator ()() 37 Slice b = GetLengthPrefixedSlice(bptr); in operator ()() 44 static const char* EncodeKey(std::string* scratch, const Slice& target) { in EncodeKey() 56 virtual void Seek(const Slice& k) { iter_.Seek(EncodeKey(&tmp_, k)); } in Seek() 61 virtual Slice key() const { return GetLengthPrefixedSlice(iter_.key()); } in key() 62 virtual Slice value() const { in value() 63 Slice key_slice = GetLengthPrefixedSlice(iter_.key()); in value() 83 const Slice& key, in Add() [all …]
|
D | dbformat.cc | 50 int InternalKeyComparator::Compare(const Slice& akey, const Slice& bkey) const { in Compare() 70 const Slice& limit) const { in FindShortestSeparator() 72 Slice user_start = ExtractUserKey(*start); in FindShortestSeparator() 73 Slice user_limit = ExtractUserKey(limit); in FindShortestSeparator() 88 Slice user_key = ExtractUserKey(*key); in FindShortSuccessor() 105 void InternalFilterPolicy::CreateFilter(const Slice* keys, int n, in CreateFilter() 109 Slice* mkey = const_cast<Slice*>(keys); in CreateFilter() 117 bool InternalFilterPolicy::KeyMayMatch(const Slice& key, const Slice& f) const { in KeyMayMatch() 121 LookupKey::LookupKey(const Slice& user_key, SequenceNumber s) { in LookupKey()
|
D | write_batch_test.cc | 65 batch.Put(Slice("foo"), Slice("bar")); in TEST() 66 batch.Delete(Slice("box")); in TEST() 67 batch.Put(Slice("baz"), Slice("boo")); in TEST() 79 batch.Put(Slice("foo"), Slice("bar")); in TEST() 80 batch.Delete(Slice("box")); in TEST() 82 Slice contents = WriteBatchInternal::Contents(&batch); in TEST() 84 Slice(contents.data(),contents.size()-1)); in TEST()
|
D | db_bench.cc | 131 Slice Generate(size_t len) { in Generate() 137 return Slice(data_.data() + pos_ - len, len); in Generate() 141 static Slice TrimSpace(Slice s) { in TrimSpace() 150 return Slice(s.data() + start, limit - start); in TrimSpace() 153 static void AppendWithSpace(std::string* str, Slice msg) { in AppendWithSpace() 205 void AddMessage(Slice msg) { in AddMessage() 239 void Report(const Slice& name) { in Report() 372 Slice key = TrimSpace(Slice(line, sep - 1 - line)); in PrintEnvironment() 373 Slice val = TrimSpace(Slice(sep + 1)); in PrintEnvironment() 403 if (Slice(files[i]).starts_with("heap-")) { in Benchmark() [all …]
|
D | c.cc | 37 using leveldb::Slice; 73 virtual int Compare(const Slice& a, const Slice& b) const { in Compare() 82 virtual void FindShortestSeparator(std::string*, const Slice&) const { } in FindShortestSeparator() 108 virtual void CreateFilter(const Slice* keys, int n, std::string* dst) const { in CreateFilter() 121 virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const { in KeyMayMatch() 177 db->rep->Put(options->rep, Slice(key, keylen), Slice(val, vallen))); in leveldb_put() 185 SaveError(errptr, db->rep->Delete(options->rep, Slice(key, keylen))); in leveldb_delete() 205 Status s = db->rep->Get(options->rep, Slice(key, keylen), &tmp); in leveldb_get() 244 if (db->rep->GetProperty(Slice(propname), &tmp)) { in leveldb_property_value() 260 ranges[i].start = Slice(range_start_key[i], range_start_key_len[i]); in leveldb_approximate_sizes() [all …]
|
D | write_batch.cc | 43 Slice input(rep_); in Iterate() 49 Slice key, value; in Iterate() 98 void WriteBatch::Put(const Slice& key, const Slice& value) { in Put() 105 void WriteBatch::Delete(const Slice& key) { in Delete() 117 virtual void Put(const Slice& key, const Slice& value) { in Put() 121 virtual void Delete(const Slice& key) { in Delete() 122 mem_->Add(sequence_, kTypeDeletion, key, Slice()); in Delete() 136 void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) { in SetContents()
|
D | version_set.h | 44 const Slice& key); 56 const Slice* smallest_user_key, 57 const Slice* largest_user_key); 85 bool RecordReadSample(Slice key); 103 const Slice* smallest_user_key, 104 const Slice* largest_user_key); 108 int PickLevelForMemTableOutput(const Slice& smallest_user_key, 109 const Slice& largest_user_key); 128 void ForEachOverlapping(Slice user_key, Slice internal_key, 353 bool IsBaseLevelForKey(const Slice& user_key); [all …]
|
D | db_impl.h | 32 virtual Status Put(const WriteOptions&, const Slice& key, const Slice& value); 33 virtual Status Delete(const WriteOptions&, const Slice& key); 36 const Slice& key, 41 virtual bool GetProperty(const Slice& property, std::string* value); 43 virtual void CompactRange(const Slice* begin, const Slice* end); 48 void TEST_CompactRange(int level, const Slice* begin, const Slice* end); 65 void RecordReadSample(Slice key);
|
D | filename.cc | 15 extern Status WriteStringToFileSync(Env* env, const Slice& data, 83 Slice rest(fname); in ParseFileName() 111 Slice suffix = rest; in ParseFileName() 112 if (suffix == Slice(".log")) { in ParseFileName() 114 } else if (suffix == Slice(".sst") || suffix == Slice(".ldb")) { in ParseFileName() 116 } else if (suffix == Slice(".dbtmp")) { in ParseFileName() 130 Slice contents = manifest; in SetCurrentFile()
|
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/ |
D | status.h | 35 static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 38 static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 41 static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 44 static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 47 static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 88 Status(Code code, const Slice& msg, const Slice& msg2);
|
D | slice.h | 25 class Slice { 28 Slice() : data_(""), size_(0) { } in Slice() function 31 Slice(const char* d, size_t n) : data_(d), size_(n) { } in Slice() function 34 Slice(const std::string& s) : data_(s.data()), size_(s.size()) { } in Slice() function 37 Slice(const char* s) : data_(s), size_(strlen(s)) { } in Slice() function 72 int compare(const Slice& b) const; 75 bool starts_with(const Slice& x) const { in starts_with() 87 inline bool operator==(const Slice& x, const Slice& y) { 92 inline bool operator!=(const Slice& x, const Slice& y) { 96 inline int Slice::compare(const Slice& b) const { in compare()
|
D | db.h | 34 Slice start; // Included in the range 35 Slice limit; // Not included in the range 38 Range(const Slice& s, const Slice& l) : start(s), limit(l) { } in Range() 62 const Slice& key, 63 const Slice& value) = 0; 69 virtual Status Delete(const WriteOptions& options, const Slice& key) = 0; 84 const Slice& key, std::string* value) = 0; 118 virtual bool GetProperty(const Slice& property, std::string* value) = 0; 141 virtual void CompactRange(const Slice* begin, const Slice* end) = 0;
|
D | write_batch.h | 29 class Slice; variable 37 void Put(const Slice& key, const Slice& value); 40 void Delete(const Slice& key); 49 virtual void Put(const Slice& key, const Slice& value) = 0; 50 virtual void Delete(const Slice& key) = 0;
|
D | table.h | 56 uint64_t ApproximateOffsetOf(const Slice& key) const; 63 static Iterator* BlockReader(void*, const ReadOptions&, const Slice&); 70 const ReadOptions&, const Slice& key, 72 void (*handle_result)(void* arg, const Slice& k, const Slice& v)); 76 void ReadFilter(const Slice& filter_handle_value);
|
/external/chromium-trace/trace-viewer/src/tracing/tracks/ |
D | slice_track_test.js | 15 var Slice = tracing.trace_model.Slice; 32 new Slice('', 'a', 0, 1, {}, 1), 33 new Slice('', 'b', 1, 2.1, {}, 4.8), 34 new Slice('', 'b', 1, 7, {}, 0.5), 35 new Slice('', 'c', 2, 7.6, {}, 0.4) 57 var s = new Slice('', 'a', 1, x, {}, widths[i]); 92 new Slice('', 'a ' + tooLongTitle + bigTitle, 0, 1, {}, 1), 93 new Slice('', bigTitle, 1, 2.1, {}, 4.8), 94 new Slice('', 'cccc cccc cccc', 1, 7, {}, 0.5), 95 new Slice('', 'd', 2, 7.6, {}, 1.0) [all …]
|
/external/chromium_org/third_party/leveldatabase/src/doc/bench/ |
D | db_bench_tree_db.cc | 108 Slice Generate(int len) { in Generate() 114 return Slice(data_.data() + pos_ - len, len); in Generate() 118 static Slice TrimSpace(Slice s) { in TrimSpace() 127 return Slice(s.data() + start, limit - start); in TrimSpace() 200 Slice key = TrimSpace(Slice(line, sep - 1 - line)); in PrintEnvironment() 201 Slice val = TrimSpace(Slice(sep + 1)); in PrintEnvironment() 252 void Stop(const Slice& name) { in Stop() 303 if (Slice(files[i]).starts_with("dbbench_polyDB")) { in Benchmark() 326 Slice name; in Run() 331 name = Slice(benchmarks, sep - benchmarks); in Run() [all …]
|
D | db_bench_sqlite3.cc | 139 Slice Generate(int len) { in Generate() 145 return Slice(data_.data() + pos_ - len, len); in Generate() 149 static Slice TrimSpace(Slice s) { in TrimSpace() 158 return Slice(s.data() + start, limit - start); in TrimSpace() 224 Slice key = TrimSpace(Slice(line, sep - 1 - line)); in PrintEnvironment() 225 Slice val = TrimSpace(Slice(sep + 1)); in PrintEnvironment() 276 void Stop(const Slice& name) { in Stop() 328 if (Slice(files[i]).starts_with("dbbench_sqlite3")) { in Benchmark() 350 Slice name; in Run() 355 name = Slice(benchmarks, sep - benchmarks); in Run() [all …]
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
D | cache.cc | 27 void (*deleter)(const Slice&, void* value); 37 Slice key() const { in key() 41 return *(reinterpret_cast<Slice*>(value)); in key() 43 return Slice(key_data, key_length); in key() 58 LRUHandle* Lookup(const Slice& key, uint32_t hash) { in Lookup() 78 LRUHandle* Remove(const Slice& key, uint32_t hash) { in Remove() 98 LRUHandle** FindPointer(const Slice& key, uint32_t hash) { in FindPointer() 144 Cache::Handle* Insert(const Slice& key, uint32_t hash, 146 void (*deleter)(const Slice& key, void* value)); 147 Cache::Handle* Lookup(const Slice& key, uint32_t hash); [all …]
|
D | logging.h | 18 class Slice; variable 26 extern void AppendEscapedStringTo(std::string* str, const Slice& value); 33 extern std::string EscapeString(const Slice& value); 37 extern bool ConsumeChar(Slice* in, char c); 43 extern bool ConsumeDecimalNumber(Slice* in, uint64_t* val);
|
D | coding.cc | 98 void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { in PutLengthPrefixedSlice() 131 bool GetVarint32(Slice* input, uint32_t* value) { in GetVarint32() 138 *input = Slice(q, limit - q); in GetVarint32() 160 bool GetVarint64(Slice* input, uint64_t* value) { in GetVarint64() 167 *input = Slice(q, limit - q); in GetVarint64() 173 Slice* result) { in GetLengthPrefixedSlice() 178 *result = Slice(p, len); in GetLengthPrefixedSlice() 182 bool GetLengthPrefixedSlice(Slice* input, Slice* result) { in GetLengthPrefixedSlice() 186 *result = Slice(input->data(), len); in GetLengthPrefixedSlice()
|
/external/chromium_org/third_party/leveldatabase/src/table/ |
D | filter_block.cc | 30 void FilterBlockBuilder::AddKey(const Slice& key) { in AddKey() 31 Slice k = key; in AddKey() 36 Slice FilterBlockBuilder::Finish() { in Finish() 49 return Slice(result_); in Finish() 66 tmp_keys_[i] = Slice(base, length); in GenerateFilter() 79 const Slice& contents) in FilterBlockReader() 95 bool FilterBlockReader::KeyMayMatch(uint64_t block_offset, const Slice& key) { in KeyMayMatch() 101 Slice filter = Slice(data_ + start, limit - start); in KeyMayMatch()
|
D | table.cc | 48 Slice footer_input; in Open() 106 if (iter->Valid() && iter->key() == Slice(key)) { in ReadMeta() 113 void Table::ReadFilter(const Slice& filter_handle_value) { in ReadFilter() 114 Slice v = filter_handle_value; in ReadFilter() 141 static void DeleteCachedBlock(const Slice& key, void* value) { in DeleteCachedBlock() 156 const Slice& index_value) { in BlockReader() 163 Slice input = index_value; in BlockReader() 174 Slice key(cache_key_buffer, sizeof(cache_key_buffer)); in BlockReader() 216 Status Table::InternalGet(const ReadOptions& options, const Slice& k, in InternalGet() argument 218 void (*saver)(void*, const Slice&, const Slice&)) { in InternalGet() [all …]
|
D | filter_block.h | 34 void AddKey(const Slice& key); 35 Slice Finish(); 44 std::vector<Slice> tmp_keys_; // policy_->CreateFilter() argument 55 FilterBlockReader(const FilterPolicy* policy, const Slice& contents); 56 bool KeyMayMatch(uint64_t block_offset, const Slice& key);
|
/external/chromium_org/tools/telemetry/telemetry/core/timeline/ |
D | slice_unittest.py | 7 from telemetry.core.timeline.slice import Slice 14 top = Slice(None, 'cat', 'top', 0, duration=10, thread_timestamp=0, 16 a = Slice(None, 'cat', 'a', 1, duration=2, thread_timestamp=0.5, 18 x = Slice(None, 'cat', 'x', 1.5, duration=0.25, thread_timestamp=0.75, 20 b = Slice(None, 'cat', 'b', 5, duration=2, thread_timestamp=None,
|