MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
全部  文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Public 成员函数 | 所有成员列表
oceanbase::ObDefaultComparator类 参考

comparator with lexicographical order 更多...

#include <ob_comparator.h>

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

Public 成员函数

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

详细描述

comparator with lexicographical order

成员函数说明

◆ compare()

int oceanbase::ObDefaultComparator::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.


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