greenplumn CDXLScalarSubqueryNotExists 源码
greenplumn CDXLScalarSubqueryNotExists 代码
文件路径:/src/backend/gporca/libnaucrates/src/operators/CDXLScalarSubqueryNotExists.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC, Corp.
//
// @filename:
// CDXLScalarSubqueryNotExists.cpp
//
// @doc:
// Implementation of NOT EXISTS subqueries
//---------------------------------------------------------------------------
#include "naucrates/dxl/operators/CDXLScalarSubqueryNotExists.h"
#include "gpos/string/CWStringDynamic.h"
#include "naucrates/dxl/operators/CDXLNode.h"
#include "naucrates/dxl/xml/CXMLSerializer.h"
using namespace gpos;
using namespace gpdxl;
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::CDXLScalarSubqueryNotExists
//
// @doc:
// Constructor
//
//---------------------------------------------------------------------------
CDXLScalarSubqueryNotExists::CDXLScalarSubqueryNotExists(CMemoryPool *mp)
: CDXLScalar(mp)
{
}
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::~CDXLScalarSubqueryNotExists
//
// @doc:
// Destructor
//
//---------------------------------------------------------------------------
CDXLScalarSubqueryNotExists::~CDXLScalarSubqueryNotExists() = default;
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::GetDXLOperator
//
// @doc:
// Operator type
//
//---------------------------------------------------------------------------
Edxlopid
CDXLScalarSubqueryNotExists::GetDXLOperator() const
{
return EdxlopScalarSubqueryNotExists;
}
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::GetOpNameStr
//
// @doc:
// Operator name
//
//---------------------------------------------------------------------------
const CWStringConst *
CDXLScalarSubqueryNotExists::GetOpNameStr() const
{
return CDXLTokens::GetDXLTokenStr(EdxltokenScalarSubqueryNotExists);
}
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::SerializeToDXL
//
// @doc:
// Serialize operator in DXL format
//
//---------------------------------------------------------------------------
void
CDXLScalarSubqueryNotExists::SerializeToDXL(CXMLSerializer *xml_serializer,
const CDXLNode *dxlnode) const
{
const CWStringConst *element_name = GetOpNameStr();
xml_serializer->OpenElement(
CDXLTokens::GetDXLTokenStr(EdxltokenNamespacePrefix), element_name);
dxlnode->SerializeChildrenToDXL(xml_serializer);
xml_serializer->CloseElement(
CDXLTokens::GetDXLTokenStr(EdxltokenNamespacePrefix), element_name);
}
#ifdef GPOS_DEBUG
//---------------------------------------------------------------------------
// @function:
// CDXLScalarSubqueryNotExists::AssertValid
//
// @doc:
// Checks whether operator node is well-structured
//
//---------------------------------------------------------------------------
void
CDXLScalarSubqueryNotExists::AssertValid(const CDXLNode *dxlnode,
BOOL validate_children) const
{
GPOS_ASSERT(1 == dxlnode->Arity());
CDXLNode *child_dxlnode = (*dxlnode)[0];
GPOS_ASSERT(EdxloptypeLogical ==
child_dxlnode->GetOperator()->GetDXLOperatorType());
dxlnode->AssertValid(validate_children);
}
#endif // GPOS_DEBUG
// EOF
相关信息
相关文章
greenplumn CDXLCtasStorageOptions 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony