greenplumn CScalarDMLAction 源码
greenplumn CScalarDMLAction 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CScalarDMLAction.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CScalarDMLAction.cpp
//
// @doc:
// Implementation of scalar DML action operator
//---------------------------------------------------------------------------
#include "gpopt/operators/CScalarDMLAction.h"
#include "gpos/base.h"
#include "gpopt/base/CColRefSet.h"
#include "gpopt/base/CDrvdPropScalar.h"
#include "gpopt/base/COptCtxt.h"
#include "gpopt/operators/CExpressionHandle.h"
#include "naucrates/md/IMDTypeInt4.h"
using namespace gpopt;
using namespace gpmd;
//---------------------------------------------------------------------------
// @function:
// CScalarDMLAction::Matches
//
// @doc:
// Match function on operator level
//
//---------------------------------------------------------------------------
BOOL
CScalarDMLAction::Matches(COperator *pop) const
{
return pop->Eopid() == Eopid();
}
//---------------------------------------------------------------------------
// @function:
// CScalarDMLAction::MdidType
//
// @doc:
// Operator type
//
//---------------------------------------------------------------------------
IMDId *
CScalarDMLAction::MdidType() const
{
CMDAccessor *md_accessor = COptCtxt::PoctxtFromTLS()->Pmda();
return md_accessor->PtMDType<IMDTypeInt4>()->MDId();
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦