greenplumn CScalarAssertConstraintList 源码
greenplumn CScalarAssertConstraintList 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CScalarAssertConstraintList.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2015 VMware, Inc. or its affiliates.
//
// @filename:
// CScalarAssertConstraintList.cpp
//
// @doc:
// Implementation of scalar assert constraint list representing the predicate
// of assert operators
//---------------------------------------------------------------------------
#include "gpopt/operators/CScalarAssertConstraintList.h"
#include "gpos/base.h"
#include "gpopt/base/COptCtxt.h"
#include "naucrates/md/IMDTypeBool.h"
using namespace gpopt;
using namespace gpmd;
//---------------------------------------------------------------------------
// @function:
// CScalarAssertConstraintList::CScalarAssertConstraintList
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CScalarAssertConstraintList::CScalarAssertConstraintList(CMemoryPool *mp)
: CScalar(mp)
{
}
//---------------------------------------------------------------------------
// @function:
// CScalarAssertConstraintList::Matches
//
// @doc:
// Match function on operator level
//
//---------------------------------------------------------------------------
BOOL
CScalarAssertConstraintList::Matches(COperator *pop) const
{
return pop->Eopid() == Eopid();
}
//---------------------------------------------------------------------------
// @function:
// CScalarAssertConstraintList::Matches
//
// @doc:
// Type of expression's result
//
//---------------------------------------------------------------------------
IMDId *
CScalarAssertConstraintList::MdidType() const
{
CMDAccessor *md_accessor = COptCtxt::PoctxtFromTLS()->Pmda();
return md_accessor->PtMDType<IMDTypeBool>()->MDId();
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦