greenplumn CWindowOids 源码
greenplumn CWindowOids 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/base/CWindowOids.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2017 VMware, Inc. or its affiliates.
//
// @filename:
// CWindowOids.h
//
// @doc:
// System specific oids for window operations
//---------------------------------------------------------------------------
#ifndef GPOPT_CWindowOids_H
#define GPOPT_CWindowOids_H
#include "gpos/common/CRefCount.h"
#include "naucrates/dxl/gpdb_types.h"
#define DUMMY_ROW_NUMBER_OID OID(7000)
#define DUMMY_WIN_RANK OID(7001)
namespace gpopt
{
//---------------------------------------------------------------------------
// @class:
// CWindowOids
//
// @doc:
// GPDB specific oids
//
//---------------------------------------------------------------------------
class CWindowOids : public CRefCount
{
private:
// oid of window operation "row_number" function
OID m_oidRowNumber;
// oid of window operation "rank" function
OID m_oidRank;
public:
CWindowOids(OID row_number_oid, OID rank_oid);
// accessor of oid value of "row_number" function
OID OidRowNumber() const;
// accessor of oid value of "rank" function
OID OidRank() const;
// generate default window oids
static CWindowOids *GetWindowOids(CMemoryPool *mp);
}; // class CWindowOids
} // namespace gpopt
#endif // !GPOPT_CWindowOids_H
// EOF
相关信息
相关文章
greenplumn CColConstraintsArrayMapper 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦