greenplumn CLogicalInnerCorrelatedApply 源码
greenplumn CLogicalInnerCorrelatedApply 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CLogicalInnerCorrelatedApply.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CLogicalInnerCorrelatedApply.cpp
//
// @doc:
// Implementation of inner correlated apply operator
//---------------------------------------------------------------------------
#include "gpopt/operators/CLogicalInnerCorrelatedApply.h"
#include "gpos/base.h"
using namespace gpopt;
//---------------------------------------------------------------------------
// @function:
// CLogicalInnerCorrelatedApply::CLogicalInnerCorrelatedApply
//
// @doc:
// Ctor - for patterns
//
//---------------------------------------------------------------------------
CLogicalInnerCorrelatedApply::CLogicalInnerCorrelatedApply(CMemoryPool *mp)
: CLogicalInnerApply(mp)
{
}
//---------------------------------------------------------------------------
// @function:
// CLogicalInnerCorrelatedApply::CLogicalInnerCorrelatedApply
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CLogicalInnerCorrelatedApply::CLogicalInnerCorrelatedApply(
CMemoryPool *mp, CColRefArray *pdrgpcrInner, EOperatorId eopidOriginSubq)
: CLogicalInnerApply(mp, pdrgpcrInner, eopidOriginSubq)
{
}
//---------------------------------------------------------------------------
// @function:
// CLogicalInnerCorrelatedApply::PxfsCandidates
//
// @doc:
// Get candidate xforms
//
//---------------------------------------------------------------------------
CXformSet *
CLogicalInnerCorrelatedApply::PxfsCandidates(CMemoryPool *mp) const
{
CXformSet *xform_set = GPOS_NEW(mp) CXformSet(mp);
(void) xform_set->ExchangeSet(CXform::ExfImplementInnerCorrelatedApply);
return xform_set;
}
//---------------------------------------------------------------------------
// @function:
// CLogicalInnerCorrelatedApply::Matches
//
// @doc:
// Match function
//
//---------------------------------------------------------------------------
BOOL
CLogicalInnerCorrelatedApply::Matches(COperator *pop) const
{
if (pop->Eopid() == Eopid())
{
return m_pdrgpcrInner->Equals(
CLogicalInnerCorrelatedApply::PopConvert(pop)->PdrgPcrInner());
}
return false;
}
//---------------------------------------------------------------------------
// @function:
// CLogicalInnerCorrelatedApply::PopCopyWithRemappedColumns
//
// @doc:
// Return a copy of the operator with remapped columns
//
//---------------------------------------------------------------------------
COperator *
CLogicalInnerCorrelatedApply::PopCopyWithRemappedColumns(
CMemoryPool *mp, UlongToColRefMap *colref_mapping, BOOL must_exist)
{
CColRefArray *pdrgpcrInner =
CUtils::PdrgpcrRemap(mp, m_pdrgpcrInner, colref_mapping, must_exist);
return GPOS_NEW(mp)
CLogicalInnerCorrelatedApply(mp, pdrgpcrInner, m_eopidOriginSubq);
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦