[FEAT MERGE] add direct load function
Co-authored-by: Monk-Liu <1152761042@qq.com> Co-authored-by: saltonz <saltonzh@gmail.com> Co-authored-by: yongshige <598633031@qq.com>
This commit is contained in:
40
src/share/table/ob_table_load_row.cpp
Normal file
40
src/share/table/ob_table_load_row.cpp
Normal file
@ -0,0 +1,40 @@
|
||||
// Copyright (c) 2022-present Oceanbase Inc. All Rights Reserved.
|
||||
// Author:
|
||||
// yuya.yu <yuya.yu@oceanbase.com>
|
||||
|
||||
#define USING_LOG_PREFIX SERVER
|
||||
|
||||
#include "share/table/ob_table_load_row.h"
|
||||
|
||||
namespace oceanbase
|
||||
{
|
||||
namespace table
|
||||
{
|
||||
using namespace common;
|
||||
|
||||
OB_DEF_SERIALIZE_SIMPLE(ObTableLoadTabletObjRow)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
OB_UNIS_ENCODE(tablet_id_);
|
||||
OB_UNIS_ENCODE(obj_row_);
|
||||
return ret;
|
||||
}
|
||||
|
||||
OB_DEF_DESERIALIZE_SIMPLE(ObTableLoadTabletObjRow)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
OB_UNIS_DECODE(tablet_id_);
|
||||
OB_UNIS_DECODE(obj_row_);
|
||||
return ret;
|
||||
}
|
||||
|
||||
OB_DEF_SERIALIZE_SIZE_SIMPLE(ObTableLoadTabletObjRow)
|
||||
{
|
||||
int64_t len = 0;
|
||||
OB_UNIS_ADD_LEN(tablet_id_);
|
||||
OB_UNIS_ADD_LEN(obj_row_);
|
||||
return len;
|
||||
}
|
||||
|
||||
} // namespace table
|
||||
} // namespace oceanbase
|
||||
Reference in New Issue
Block a user