Lines Matching refs:Slice
100 Slice user_key;
108 ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) in ParsedInternalKey()
140 std::string* result, const ParsedInternalKey& key, const Slice& ts);
152 extern bool ParseInternalKey(const Slice& internal_key,
156 inline Slice ExtractUserKey(const Slice& internal_key) { in ExtractUserKey()
158 return Slice(internal_key.data(), internal_key.size() - 8); in ExtractUserKey()
161 inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, in ExtractUserKeyAndStripTimestamp()
164 return Slice(internal_key.data(), internal_key.size() - 8 - ts_sz); in ExtractUserKeyAndStripTimestamp()
167 inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { in StripTimestampFromUserKey()
169 return Slice(user_key.data(), user_key.size() - ts_sz); in StripTimestampFromUserKey()
172 inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { in ExtractTimestampFromUserKey()
174 return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); in ExtractTimestampFromUserKey()
177 inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { in ExtractInternalKeyFooter()
183 inline ValueType ExtractValueType(const Slice& internal_key) { in ExtractValueType()
209 virtual int Compare(const Slice& a, const Slice& b) const override;
211 virtual int CompareKeySeq(const Slice& a, const Slice& b) const;
213 const Slice& limit) const override;
234 InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { in InternalKey()
240 void SetMaxPossibleForUserKey(const Slice& _user_key) { in SetMaxPossibleForUserKey()
247 void SetMinPossibleForUserKey(const Slice& _user_key) { in SetMinPossibleForUserKey()
254 return ParseInternalKey(Slice(rep_), &parsed); in Valid()
257 void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } in DecodeFrom()
258 Slice Encode() const { in Encode()
263 Slice user_key() const { return ExtractUserKey(rep_); } in user_key()
266 void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { in Set()
295 inline bool ParseInternalKey(const Slice& internal_key, in ParseInternalKey()
304 result->user_key = Slice(internal_key.data(), n - 8); in ParseInternalKey()
321 inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { in GetInternalKeySeqno()
352 Slice GetKey() const { return Slice(key_, key_size_); } in GetKey()
354 Slice GetInternalKey() const { in GetInternalKey()
356 return Slice(key_, key_size_); in GetInternalKey()
359 Slice GetUserKey() const { in GetUserKey()
361 return Slice(key_, key_size_); in GetUserKey()
364 return Slice(key_, key_size_ - 8); in GetUserKey()
403 Slice SetKey(const Slice& key, bool copy = true) {
408 Slice SetUserKey(const Slice& key, bool copy = true) {
413 Slice SetInternalKey(const Slice& key, bool copy = true) {
420 Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { in SetInternalKey()
424 ikey->user_key = Slice(key_, key_n - 8); in SetInternalKey()
425 return Slice(key_, key_n); in SetInternalKey()
448 void SetInternalKey(const Slice& key_prefix, const Slice& user_key,
451 const Slice* ts = nullptr) {
471 void SetInternalKey(const Slice& user_key, SequenceNumber s,
473 const Slice* ts = nullptr) {
474 SetInternalKey(Slice(), user_key, s, value_type, ts);
483 SetInternalKey(Slice(), parsed_key); in SetInternalKey()
486 void SetInternalKey(const Slice& key_prefix, in SetInternalKey()
492 void EncodeLengthPrefixedKey(const Slice& key) { in EncodeLengthPrefixedKey()
511 Slice SetKeyImpl(const Slice& key, bool copy) { in SetKeyImpl()
523 return Slice(key_, key_size_); in SetKeyImpl()
560 virtual Slice Transform(const Slice& src) const override { in Transform()
565 virtual bool InDomain(const Slice& src) const override { in InDomain()
570 virtual bool InRange(const Slice& dst) const override { in InRange()
586 extern bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key,
594 extern Status ReadRecordFromWriteBatch(Slice* input, char* tag,
595 uint32_t* column_family, Slice* key,
596 Slice* value, Slice* blob, Slice* xid);
603 Slice start_key_;
604 Slice end_key_;
607 RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) in RangeTombstone()
610 RangeTombstone(ParsedInternalKey parsed_key, Slice value) { in RangeTombstone()
617 std::pair<InternalKey, Slice> Serialize() const { in Serialize()
619 Slice value = end_key_; in Serialize()
640 inline int InternalKeyComparator::Compare(const Slice& akey, in Compare()
641 const Slice& bkey) const { in Compare()
659 inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, in CompareKeySeq()
660 const Slice& bkey) const { in CompareKeySeq()