greenplumn RelationWrapper 源码

  • 2022-08-18
  • 浏览 (455)

greenplumn RelationWrapper 代码

文件路径:/src/backend/gpopt/utils/RelationWrapper.cpp

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2020 VMware, Inc.
//---------------------------------------------------------------------------
#include "gpopt/utils/RelationWrapper.h"

#include "gpopt/gpdbwrappers.h"	 // for CloseRelation

namespace gpdb
{
RelationWrapper::~RelationWrapper() noexcept(false)
{
	if (m_relation)
	{
		CloseRelation(m_relation);
	}
}

void
RelationWrapper::Close()
{
	if (m_relation)
	{
		CloseRelation(m_relation);
		m_relation = nullptr;
	}
}
}  // namespace gpdb

相关信息

greenplumn 源码目录

相关文章

greenplumn CConstExprEvaluatorProxy 源码

greenplumn CMemoryPoolPalloc 源码

greenplumn CMemoryPoolPallocManager 源码

greenplumn COptTasks 源码

greenplumn funcs 源码

0  赞