[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:
obdev
2023-01-28 18:08:50 +08:00
committed by ob-robot
parent f27d2efc83
commit 81d28c0295
384 changed files with 55860 additions and 1239 deletions

View 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