greenplumn CLogicalLeftSemiCorrelatedApply 源码
greenplumn CLogicalLeftSemiCorrelatedApply 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CLogicalLeftSemiCorrelatedApply.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// CLogicalLeftSemiCorrelatedApply.cpp
//
// @doc:
// Implementation of left semi correlated apply for EXISTS subqueries
//---------------------------------------------------------------------------
#include "gpopt/operators/CLogicalLeftSemiCorrelatedApply.h"
#include "gpos/base.h"
using namespace gpopt;
//---------------------------------------------------------------------------
// @function:
// CLogicalLeftSemiCorrelatedApply::CLogicalLeftSemiCorrelatedApply
//
// @doc:
// Ctor - for patterns
//
//---------------------------------------------------------------------------
CLogicalLeftSemiCorrelatedApply::CLogicalLeftSemiCorrelatedApply(
CMemoryPool *mp)
: CLogicalLeftSemiApply(mp)
{
}
//---------------------------------------------------------------------------
// @function:
// CLogicalLeftSemiCorrelatedApply::CLogicalLeftSemiCorrelatedApply
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CLogicalLeftSemiCorrelatedApply::CLogicalLeftSemiCorrelatedApply(
CMemoryPool *mp, CColRefArray *pdrgpcrInner, EOperatorId eopidOriginSubq)
: CLogicalLeftSemiApply(mp, pdrgpcrInner, eopidOriginSubq)
{
}
//---------------------------------------------------------------------------
// @function:
// CLogicalLeftSemiCorrelatedApply::PxfsCandidates
//
// @doc:
// Get candidate xforms
//
//---------------------------------------------------------------------------
CXformSet *
CLogicalLeftSemiCorrelatedApply::PxfsCandidates(CMemoryPool *mp) const
{
CXformSet *xform_set = GPOS_NEW(mp) CXformSet(mp);
(void) xform_set->ExchangeSet(CXform::ExfImplementLeftSemiCorrelatedApply);
return xform_set;
}
//---------------------------------------------------------------------------
// @function:
// CLogicalLeftSemiCorrelatedApply::PopCopyWithRemappedColumns
//
// @doc:
// Return a copy of the operator with remapped columns
//
//---------------------------------------------------------------------------
COperator *
CLogicalLeftSemiCorrelatedApply::PopCopyWithRemappedColumns(
CMemoryPool *mp, UlongToColRefMap *colref_mapping, BOOL must_exist)
{
CColRefArray *pdrgpcrInner =
CUtils::PdrgpcrRemap(mp, m_pdrgpcrInner, colref_mapping, must_exist);
return GPOS_NEW(mp)
CLogicalLeftSemiCorrelatedApply(mp, pdrgpcrInner, m_eopidOriginSubq);
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦