Searched refs:Slice (Results 1 - 25 of 172) sorted by relevance

1234567

/external/chromium_org/third_party/leveldatabase/src/include/leveldb/
H A Dfilter_policy.h23 class Slice;
41 virtual void CreateFilter(const Slice* keys, int n, std::string* dst)
49 virtual bool KeyMayMatch(const Slice& key, const Slice& filter) const = 0;
H A Dwrite_batch.h29 class Slice;
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;
H A Dstatus.h35 static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { argument
38 static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { argument
41 static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { argument
44 static Status InvalidArgument(const Slice argument
47 IOError(const Slice& msg, const Slice& msg2 = Slice()) argument
[all...]
H A Dcomparator.h12 class Slice;
26 virtual int Compare(const Slice& a, const Slice& b) const = 0;
48 const Slice& limit) const = 0;
H A Dslice.h5 // Slice is a simple structure containing a pointer into some external
6 // storage and a size. The user of a Slice must ensure that the slice
10 // Multiple threads can invoke const methods on a Slice without
12 // non-const method, all threads accessing the same Slice must use
25 class Slice { class in namespace:leveldb
28 Slice() : data_(""), size_(0) { } function in class:leveldb::Slice
31 Slice(const char* d, size_t n) : data_(d), size_(n) { } function in class:leveldb::Slice
34 Slice(const std::string& s) : data_(s.data()), size_(s.size()) { } function in class:leveldb::Slice
37 Slice(const char* s) : data_(s), size_(strlen(s)) { } function in class:leveldb::Slice
72 int compare(const Slice
[all...]
H A Dtable.h56 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);
H A Ddb.h34 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) { }
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* begi
[all...]
H A Dcache.h52 virtual Handle* Insert(const Slice& key, void* value, size_t charge,
53 void (*deleter)(const Slice& key, void* value)) = 0;
60 virtual Handle* Lookup(const Slice& key) = 0;
76 virtual void Erase(const Slice& key) = 0;
/external/chromium-trace/trace-viewer/src/tracing/trace_model/
H A Dslice.js10 * @fileoverview Provides the Slice class.
14 * A Slice represents an interval of time plus parameters associated
19 function Slice(category, title, colorId, start, args, opt_duration) {
27 Slice.prototype = {
36 Slice: Slice
/external/chromium_org/third_party/leveldatabase/src/util/
H A Dlogging.h18 class Slice;
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);
H A Dtestutil.cc12 Slice RandomString(Random* rnd, int len, std::string* dst) {
17 return Slice(*dst);
34 extern Slice CompressibleString(Random* rnd, double compressed_fraction,
47 return Slice(*dst);
/external/chromium_org/third_party/leveldatabase/src/db/
H A Ddbformat.h71 Slice user_key;
76 ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t)
94 extern bool ParseInternalKey(const Slice& internal_key,
98 inline Slice ExtractUserKey(const Slice& internal_key) {
100 return Slice(internal_key.data(), internal_key.size() - 8);
103 inline ValueType ExtractValueType(const Slice& internal_key) {
119 virtual int Compare(const Slice& a, const Slice& b) const;
122 const Slice
[all...]
H A Dwrite_batch_internal.h31 static Slice Contents(const WriteBatch* batch) {
32 return Slice(batch->rep_);
39 static void SetContents(WriteBatch* batch, const Slice& contents);
H A Dmemtable.cc14 static Slice GetLengthPrefixedSlice(const char* data) {
18 return Slice(p, len);
36 Slice a = GetLengthPrefixedSlice(aptr);
37 Slice b = GetLengthPrefixedSlice(bptr);
44 static const char* EncodeKey(std::string* scratch, const Slice& target) {
56 virtual void Seek(const Slice& k) { iter_.Seek(EncodeKey(&tmp_, k)); }
61 virtual Slice key() const { return GetLengthPrefixedSlice(iter_.key()); }
62 virtual Slice value() const {
63 Slice key_slice = GetLengthPrefixedSlice(iter_.key());
83 const Slice
[all...]
H A Dwrite_batch_test.cc65 batch.Put(Slice("foo"), Slice("bar"));
66 batch.Delete(Slice("box"));
67 batch.Put(Slice("baz"), Slice("boo"));
79 batch.Put(Slice("foo"), Slice("bar"));
80 batch.Delete(Slice("box"));
82 Slice contents = WriteBatchInternal::Contents(&batch);
84 Slice(content
[all...]
H A Ddbformat.cc50 int InternalKeyComparator::Compare(const Slice& akey, const Slice& bkey) const {
70 const Slice& limit) const {
72 Slice user_start = ExtractUserKey(*start);
73 Slice user_limit = ExtractUserKey(limit);
88 Slice user_key = ExtractUserKey(*key);
105 void InternalFilterPolicy::CreateFilter(const Slice* keys, int n,
109 Slice* mkey = const_cast<Slice*>(keys);
117 bool InternalFilterPolicy::KeyMayMatch(const Slice
[all...]
H A Dlog_reader.h53 bool ReadRecord(Slice* record, std::string* scratch);
65 Slice buffer_;
93 unsigned int ReadPhysicalRecord(Slice* result);
H A Dtable_cache.h43 const Slice& k,
45 void (*handle_result)(void*, const Slice&, const Slice&));
/external/chromium-trace/trace-viewer/src/tracing/tracks/
H A Dcpu_track_test.js14 var Slice = tracing.trace_model.Slice;
22 new Slice('', 'a', 0, 1, {}, 1),
23 new Slice('', 'b', 1, 2.1, {}, 4.8)
/external/chromium_org/third_party/leveldatabase/src/table/
H A Dfilter_block.h34 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);
H A Dblock_builder.h26 void Add(const Slice& key, const Slice& value);
31 Slice Finish();
H A Dtwo_level_iterator.h28 const Slice& index_value),
H A Dfilter_block.cc30 void FilterBlockBuilder::AddKey(const Slice& key) {
31 Slice k = key;
36 Slice FilterBlockBuilder::Finish() {
49 return Slice(result_);
66 tmp_keys_[i] = Slice(base, length);
79 const Slice& contents)
95 bool FilterBlockReader::KeyMayMatch(uint64_t block_offset, const Slice& key) {
101 Slice filter = Slice(data_ + start, limit - start);
H A Diterator.cc46 virtual void Seek(const Slice& target) { }
51 Slice key() const { assert(false); return Slice(); }
52 Slice value() const { assert(false); return Slice(); }
/external/chromium_org/tools/telemetry/telemetry/timeline/
H A Dslice_unittest.py7 from telemetry.timeline.slice import Slice namespace
15 top = Slice(None, 'cat', 'top', 0, duration=10, thread_timestamp=0,
17 a = Slice(None, 'cat', 'a', 1, duration=2, thread_timestamp=0.5,
19 x = Slice(None, 'cat', 'x', 1.5, duration=0.25, thread_timestamp=0.75,
21 b = Slice(None, 'cat', 'b', 5, duration=2, thread_timestamp=None,

Completed in 8684 milliseconds

1234567