greenplumn IMDCheckConstraint 源码
greenplumn IMDCheckConstraint 代码
文件路径:/src/backend/gporca/libnaucrates/include/naucrates/md/IMDCheckConstraint.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// IMDCheckConstraint.h
//
// @doc:
// Interface class for check constraint in a metadata cache relation
//---------------------------------------------------------------------------
#ifndef GPMD_IMDCheckConstraint_H
#define GPMD_IMDCheckConstraint_H
#include "gpos/base.h"
#include "gpopt/base/CColRef.h"
#include "naucrates/md/IMDCacheObject.h"
// fwd decl
namespace gpdxl
{
class CDXLNode;
}
namespace gpopt
{
class CExpression;
class CMDAccessor;
} // namespace gpopt
namespace gpmd
{
using namespace gpos;
using namespace gpopt;
//---------------------------------------------------------------------------
// @class:
// IMDCheckConstraint
//
// @doc:
// Interface class for check constraint in a metadata cache relation
//
//---------------------------------------------------------------------------
class IMDCheckConstraint : public IMDCacheObject
{
public:
// object type
Emdtype
MDType() const override
{
return EmdtCheckConstraint;
}
// mdid of the relation
virtual IMDId *GetRelMdId() const = 0;
// the scalar expression of the check constraint
virtual CExpression *GetCheckConstraintExpr(
CMemoryPool *mp, CMDAccessor *md_accessor,
CColRefArray *colref_array) const = 0;
};
} // namespace gpmd
#endif // !GPMD_IMDCheckConstraint_H
// EOF
相关信息
相关文章
greenplumn CDXLStatsDerivedColumn 源码
greenplumn CDXLStatsDerivedRelation 源码
greenplumn CMDAggregateGPDB 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦