greenplumn CColRefSetIter 源码
greenplumn CColRefSetIter 代码
文件路径:/src/backend/gporca/libgpopt/src/base/CColRefSetIter.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 Greenplum, Inc.
//
// @filename:
// CColRefSetIter.cpp
//
// @doc:
// Implementation of bitset iterator
//---------------------------------------------------------------------------
#include "gpopt/base/CColRefSetIter.h"
#include "gpos/base.h"
#include "gpos/common/CAutoRef.h"
#include "gpopt/base/CAutoOptCtxt.h"
#include "gpopt/base/CColumnFactory.h"
using namespace gpopt;
//---------------------------------------------------------------------------
// @function:
// CColRefSetIter::CColRefSetIter
//
// @doc:
// ctor
//
//---------------------------------------------------------------------------
CColRefSetIter::CColRefSetIter(const CColRefSet &bs) : CBitSetIter(bs)
{
// get column factory from optimizer context object
m_pcf = COptCtxt::PoctxtFromTLS()->Pcf();
GPOS_ASSERT(nullptr != m_pcf);
}
//---------------------------------------------------------------------------
// @function:
// CColRefSetIter::Pcr
//
// @doc:
// Return colref of current position of cursor
//
//---------------------------------------------------------------------------
CColRef *
CColRefSetIter::Pcr() const
{
ULONG id = CBitSetIter::Bit();
// resolve id through column factory
return m_pcf->LookupColRef(id);
}
// EOF
相关信息
相关文章
greenplumn CColConstraintsArrayMapper 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦