greenplumn CLogicalLeftSemiCorrelatedApplyIn 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CLogicalLeftSemiCorrelatedApplyIn.cpp
/---------------------------------------------------------------------------
/ Greenplum Database
/ Copyright (C) 2014 VMware, Inc. or its affiliates.
/
/ @filename:
/ CLogicalLeftSemiCorrelatedApplyIn.cpp
/
/ @doc:
/ Implementation of left semi correlated apply with IN semantics
/---------------------------------------------------------------------------
#include "gpopt/operators/CLogicalLeftSemiCorrelatedApplyIn.h"
#include "gpos/base.h"
using namespace gpopt;
/---------------------------------------------------------------------------
/ @function:
/ CLogicalLeftSemiCorrelatedApplyIn::CLogicalLeftSemiCorrelatedApplyIn
/
/ @doc:
/ Ctor - for patterns
/
/---------------------------------------------------------------------------
CLogicalLeftSemiCorrelatedApplyIn::CLogicalLeftSemiCorrelatedApplyIn(
CMemoryPool *mp)
: CLogicalLeftSemiApplyIn(mp)
{
}
/---------------------------------------------------------------------------
/ @function:
/ CLogicalLeftSemiCorrelatedApplyIn::CLogicalLeftSemiCorrelatedApplyIn
/
/ @doc:
/ Ctor
/
/---------------------------------------------------------------------------
CLogicalLeftSemiCorrelatedApplyIn::CLogicalLeftSemiCorrelatedApplyIn(
CMemoryPool *mp, CColRefArray *pdrgpcrInner, EOperatorId eopidOriginSubq)
: CLogicalLeftSemiApplyIn(mp, pdrgpcrInner, eopidOriginSubq)
{
}
/---------------------------------------------------------------------------
/ @function:
/ CLogicalLeftSemiCorrelatedApplyIn::PxfsCandidates
/
/ @doc:
/ Get candidate xforms
/
/---------------------------------------------------------------------------
CXformSet *
CLogicalLeftSemiCorrelatedApplyIn::PxfsCandidates(CMemoryPool *mp) const
{
CXformSet *xform_set = GPOS_NEW(mp) CXformSet(mp);
(void) xform_set->ExchangeSet(
CXform::ExfImplementLeftSemiCorrelatedApplyIn);
return xform_set;
}
/---------------------------------------------------------------------------
/ @function:
/ CLogicalLeftSemiCorrelatedApplyIn::PopCopyWithRemappedColumns
/
/ @doc:
/ Return a copy of the operator with remapped columns
/
/---------------------------------------------------------------------------
COperator *
CLogicalLeftSemiCorrelatedApplyIn::PopCopyWithRemappedColumns(
CMemoryPool *mp, UlongToColRefMap *colref_mapping, BOOL must_exist)
{
CColRefArray *pdrgpcrInner =
CUtils::PdrgpcrRemap(mp, m_pdrgpcrInner, colref_mapping, must_exist);
return GPOS_NEW(mp)
CLogicalLeftSemiCorrelatedApplyIn(mp, pdrgpcrInner, m_eopidOriginSubq);
}
/ EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码