MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
oceanbase::ObInternalKeyComparator类 参考

internal key comparator 更多...

#include <ob_comparator.h>

类 oceanbase::ObInternalKeyComparator 继承关系图:
oceanbase::ObComparator

Public 成员函数

int compare (const string_view &a, const string_view &b) const override
 Three-way comparison. 更多...
 
const ObComparatoruser_comparator () const
 
virtual int compare (const string_view &a, const string_view &b) const =0
 Three-way comparison. 更多...
 

Private 属性

ObDefaultComparator default_comparator_
 

详细描述

internal key comparator

internal key: | key_size(8B) | key | sequence_number(8B) |

成员函数说明

◆ compare()

int oceanbase::ObInternalKeyComparator::compare ( const string_view &  a,
const string_view &  b 
) const
overridevirtual

Three-way comparison.

返回
< 0 iff "a" < "b",
== 0 iff "a" == "b",
> 0 iff "a" > "b"

实现了 oceanbase::ObComparator.


该类的文档由以下文件生成: