Lines Matching refs:Slice
39 uint64_t (*get_slice_hash)(const Slice&, uint32_t, uint64_t)) in CuckooTableReader() argument
145 const Slice& key, GetContext* get_context, in Get()
149 Slice user_key = ExtractUserKey(key); in Get()
157 if (ucomp_->Equal(Slice(unused_key_.data(), user_key.size()), in Get()
158 Slice(bucket, user_key.size()))) { in Get()
163 if (ucomp_->Equal(user_key, Slice(bucket, user_key.size()))) { in Get()
164 Slice value(bucket + key_length_, value_length_); in Get()
173 Slice full_key(bucket, key_length_); in Get()
187 void CuckooTableReader::Prepare(const Slice& key) { in Prepare()
189 Slice user_key = ExtractUserKey(key); in Prepare()
209 void Seek(const Slice& target) override;
210 void SeekForPrev(const Slice& target) override;
213 Slice key() const override;
214 Slice value() const override;
220 BucketComparator(const Slice& file_data, const Comparator* ucomp, in BucketComparator()
222 const Slice& target = Slice()) in BucketComparator()
235 return ucomp_->Compare(Slice(first_bucket, user_key_len_), in operator ()()
236 Slice(second_bucket, user_key_len_)) < 0; in operator ()()
239 const Slice file_data_;
243 const Slice target_;
254 Slice curr_value_;
278 if (Slice(bucket, reader_->key_length_) != Slice(reader_->unused_key_)) { in InitIfNeeded()
303 void CuckooTableIterator::Seek(const Slice& target) { in Seek()
318 void CuckooTableIterator::SeekForPrev(const Slice& /*target*/) { in SeekForPrev() argument
338 curr_key_.SetInternalKey(Slice(offset, reader_->user_key_length_), in PrepareKVAtCurrIdx()
341 curr_key_.SetInternalKey(Slice(offset, reader_->key_length_)); in PrepareKVAtCurrIdx()
343 curr_value_ = Slice(offset + reader_->key_length_, reader_->value_length_); in PrepareKVAtCurrIdx()
369 Slice CuckooTableIterator::key() const { in key()
374 Slice CuckooTableIterator::value() const { in value()
385 return NewErrorInternalIterator<Slice>( in NewIterator()