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

Represents a snapshot of the manifest. 更多...

#include <ob_manifest.h>

Public 成员函数

bool operator== (const ObManifestSnapshot &rhs) const
 
Json::Value to_json () const
 Converts the ObManifestSnapshot to a JSON value. 更多...
 
RC from_json (const Json::Value &v)
 Populates the ObManifestSnapshot object from a JSON value. 更多...
 

静态 Public 成员函数

static string record_type ()
 

Public 属性

std::vector< std::vector< uint64_t > > sstables
 A list of SSTable IDs grouped by levels.
 
uint64_t seq
 The sequence ID for the snapshot.
 
uint64_t sstable_id
 The ID of the SSTable.
 
CompactionType compaction_type
 The type of compaction.
 

详细描述

Represents a snapshot of the manifest.

Contains information about the current state of the SSTables.

成员函数说明

◆ from_json()

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

Populates the ObManifestSnapshot object from a JSON value.

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

◆ to_json()

Json::Value oceanbase::ObManifestSnapshot::to_json ( ) const

Converts the ObManifestSnapshot to a JSON value.

返回
The JSON value representing the snapshot.

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