6#ifndef OPENCBDC_TX_SRC_RAFT_INDEX_COMPARATOR_H_
7#define OPENCBDC_TX_SRC_RAFT_INDEX_COMPARATOR_H_
9#include <leveldb/comparator.h>
20 [[nodiscard]]
auto Compare(
const leveldb::Slice& a,
21 const leveldb::Slice& b)
const
26 [[nodiscard]]
auto Name()
const ->
const char*
override;
31 const leveldb::Slice& )
const override;
LevelDB comparator for ordering NuRaft log indices.
void FindShortestSeparator(std::string *, const leveldb::Slice &) const override
Not implemented.
void FindShortSuccessor(std::string *) const override
Not implemented.
auto Compare(const leveldb::Slice &a, const leveldb::Slice &b) const -> int override
Compare the order of the two given LevelDB keys when converted to uint64_t.
auto Name() const -> const char *override
Return the comparator name.