5 #ifndef STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_ 6 #define STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_ 26 virtual int Compare(
const Slice& a,
const Slice& b)
const = 0;
38 virtual const char*
Name()
const = 0;
48 const Slice& limit)
const = 0;
63 #endif // STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_ Definition: autocompact_test.cc:11
virtual void FindShortestSeparator(std::string *start, const Slice &limit) const =0
virtual const char * Name() const =0
virtual ~Comparator()
Definition: comparator.cc:14
virtual void FindShortSuccessor(std::string *key) const =0
const Comparator * BytewiseComparator()
Definition: comparator.cc:76
virtual int Compare(const Slice &a, const Slice &b) const =0