greenplumn CXformLeftSemiApplyInWithExternalCorrs2InnerJoin 源码
greenplumn CXformLeftSemiApplyInWithExternalCorrs2InnerJoin 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/xforms/CXformLeftSemiApplyInWithExternalCorrs2InnerJoin.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// CXformLeftSemiApplyInWithExternalCorrs2InnerJoin.h
//
// @doc:
// Turn Left Semi Apply (with IN semantics) with external correlations
// into inner join;
// external correlations are correlations in the inner child of LSA
// that use columns not defined by the outer child of LSA
//---------------------------------------------------------------------------
#ifndef GPOPT_CXformLeftSemiApplyInWithExternalCorrs2InnerJoin_H
#define GPOPT_CXformLeftSemiApplyInWithExternalCorrs2InnerJoin_H
#include "gpos/base.h"
#include "gpopt/xforms/CXformLeftSemiApplyWithExternalCorrs2InnerJoin.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CXformLeftSemiApplyInWithExternalCorrs2InnerJoin
//
// @doc:
// Transform Apply into Join by decorrelating the inner side
//
//---------------------------------------------------------------------------
class CXformLeftSemiApplyInWithExternalCorrs2InnerJoin
: public CXformLeftSemiApplyWithExternalCorrs2InnerJoin
{
private:
public:
CXformLeftSemiApplyInWithExternalCorrs2InnerJoin(
const CXformLeftSemiApplyInWithExternalCorrs2InnerJoin &) = delete;
// ctor
explicit CXformLeftSemiApplyInWithExternalCorrs2InnerJoin(CMemoryPool *mp)
: CXformLeftSemiApplyWithExternalCorrs2InnerJoin(
mp, GPOS_NEW(mp) CExpression(
mp, GPOS_NEW(mp) CLogicalLeftSemiApplyIn(mp),
GPOS_NEW(mp) CExpression(
mp, GPOS_NEW(mp) CPatternLeaf(mp)), // left child
GPOS_NEW(mp) CExpression(
mp, GPOS_NEW(mp) CPatternTree(mp)), // right child
GPOS_NEW(mp) CExpression(
mp, GPOS_NEW(mp) CPatternTree(mp)) // predicate
))
{
}
// dtor
~CXformLeftSemiApplyInWithExternalCorrs2InnerJoin() override = default;
// ident accessors
EXformId
Exfid() const override
{
return ExfLeftSemiApplyInWithExternalCorrs2InnerJoin;
}
const CHAR *
SzId() const override
{
return "CXformLeftSemiApplyInWithExternalCorrs2InnerJoin";
}
}; // class CXformLeftSemiApplyInWithExternalCorrs2InnerJoin
} // namespace gpopt
#endif // !GPOPT_CXformLeftSemiApplyInWithExternalCorrs2InnerJoin_H
// EOF
相关信息
相关文章
greenplumn CJoinOrderGreedy 源码
greenplumn CJoinOrderMinCard 源码
greenplumn CSubqueryHandler 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦