greenplumn CColRefComputed 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/base/CColRefComputed.h
/---------------------------------------------------------------------------
/ Greenplum Database
/ Copyright (C) 2011 EMC Corp.
/
/ @filename:
/ CColRefComputed.h
/
/ @doc:
/ Column reference implementation for computed columns
/---------------------------------------------------------------------------
#ifndef GPOS_CColRefComputed_H
#define GPOS_CColRefComputed_H
#include "gpos/base.h"
#include "gpos/common/CDynamicPtrArray.h"
#include "gpos/common/CList.h"
#include "gpopt/base/CColRef.h"
#include "gpopt/metadata/CName.h"
#include "naucrates/md/IMDType.h"
namespace gpopt
{
using namespace gpos;
using namespace gpmd;
/---------------------------------------------------------------------------
/ @class:
/ CColRefComputed
/
/ @doc:
/
/---------------------------------------------------------------------------
class CColRefComputed : public CColRef
{
private:
public:
CColRefComputed(const CColRefComputed &) = delete;
/ ctor
CColRefComputed(const IMDType *pmdtype, INT type_modifier, ULONG id,
const CName *pname);
/ dtor
~CColRefComputed() override;
CColRef::Ecolreftype
Ecrt() const override
{
return CColRef::EcrtComputed;
}
/ is column a system column?
BOOL
IsSystemCol() const override
{
/ we cannot introduce system columns as computed column
return false;
}
/ is column a distribution column?
BOOL
IsDistCol() const override
{
/ we cannot introduce distribution columns as computed column
return false;
};
}; / class CColRefComputed
} / namespace gpopt
#endif / !GPOS_CColRefComputed_H
/ EOF
相关信息
相关文章
greenplumn CColConstraintsArrayMapper 源码