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

Struct representing SSTable information in a manifest. 更多...

#include <ob_manifest.h>

Public 成员函数

 ObManifestSSTableInfo (int sstable_id_, int level_)
 Constructor to initialize with given SSTable ID and level. 更多...
 
 ObManifestSSTableInfo ()
 
bool operator== (const ObManifestSSTableInfo &rhs) const
 Equality operator for comparing two ObManifestSSTableInfo objects. 更多...
 
Json::Value to_json () const
 Converts the ObManifestSSTableInfo object to a JSON value. 更多...
 
RC from_json (const Json::Value &v)
 Populates the ObManifestSSTableInfo object from a JSON value. 更多...
 

Public 属性

int sstable_id
 The ID of the SSTable.
 
int level
 The level of the SSTable.
 

详细描述

Struct representing SSTable information in a manifest.

This struct contains metadata about an SSTable, including its ID and level.

构造及析构函数说明

◆ ObManifestSSTableInfo() [1/2]

oceanbase::ObManifestSSTableInfo::ObManifestSSTableInfo ( int  sstable_id_,
int  level_ 
)
inline

Constructor to initialize with given SSTable ID and level.

参数
sstable_id_The SSTable ID.
level_The SSTable level.

◆ ObManifestSSTableInfo() [2/2]

oceanbase::ObManifestSSTableInfo::ObManifestSSTableInfo ( )
inline

Default constructor with default values (0).

成员函数说明

◆ from_json()

RC oceanbase::ObManifestSSTableInfo::from_json ( const Json::Value &  v)

Populates the ObManifestSSTableInfo object from a JSON value.

参数
vThe JSON value to populate the object with.
返回
An RC indicating the result of the operation.

◆ operator==()

bool oceanbase::ObManifestSSTableInfo::operator== ( const ObManifestSSTableInfo rhs) const
inline

Equality operator for comparing two ObManifestSSTableInfo objects.

参数
rhsThe other ObManifestSSTableInfo to compare with.
返回
true if the two objects are equal, false otherwise.

◆ to_json()

Json::Value oceanbase::ObManifestSSTableInfo::to_json ( ) const
inline

Converts the ObManifestSSTableInfo object to a JSON value.

返回
The JSON value representing the SSTable info.

该结构体的文档由以下文件生成: