greenplumn CSerializablePlan 源码
greenplumn CSerializablePlan 代码
文件路径:/src/backend/gporca/libgpopt/src/minidump/CSerializablePlan.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CSerializablePlan.cpp
//
// @doc:
// Serializable plan object
//---------------------------------------------------------------------------
#include "gpopt/minidump/CSerializablePlan.h"
#include "gpos/base.h"
#include "gpos/error/CErrorContext.h"
#include "gpos/task/CTask.h"
#include "naucrates/dxl/CDXLUtils.h"
using namespace gpos;
using namespace gpopt;
using namespace gpdxl;
//---------------------------------------------------------------------------
// @function:
// CSerializablePlan::CSerializablePlan
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CSerializablePlan::CSerializablePlan(CMemoryPool *mp, const CDXLNode *pdxlnPlan,
ULLONG plan_id, ULLONG plan_space_size)
: CSerializable(),
m_mp(mp),
m_plan_dxl_root(pdxlnPlan),
m_pstrPlan(nullptr),
m_plan_id(plan_id),
m_plan_space_size(plan_space_size)
{
GPOS_ASSERT(nullptr != pdxlnPlan);
}
//---------------------------------------------------------------------------
// @function:
// CSerializablePlan::~CSerializablePlan
//
// @doc:
// Dtor
//
//---------------------------------------------------------------------------
CSerializablePlan::~CSerializablePlan()
{
GPOS_DELETE(m_pstrPlan);
}
//---------------------------------------------------------------------------
// @function:
// CSerializablePlan::Serialize
//
// @doc:
// Serialize contents into provided stream
//
//---------------------------------------------------------------------------
void
CSerializablePlan::Serialize(COstream &oos)
{
CDXLUtils::SerializePlan(m_mp, oos, m_plan_dxl_root, m_plan_id,
m_plan_space_size, false /*fSerializeHeaders*/,
false /*indentation*/
);
}
// EOF
相关信息
相关文章
greenplumn CMetadataAccessorFactory 源码
greenplumn CMinidumperUtils 源码
greenplumn CSerializableMDAccessor 源码
greenplumn CSerializableOptimizerConfig 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦