greenplumn CXformLeftAntiSemiJoinNotIn2CrossProduct 源码

  • 2022-08-18
  • 浏览 (328)

greenplumn CXformLeftAntiSemiJoinNotIn2CrossProduct 代码

文件路径:/src/backend/gporca/libgpopt/include/gpopt/xforms/CXformLeftAntiSemiJoinNotIn2CrossProduct.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2013 EMC Corp.
//
//	@filename:
//		CXformLeftAntiSemiJoinNotIn2CrossProduct.h
//
//	@doc:
//		Transform left anti semi join with NotIn semantics to cross product
//---------------------------------------------------------------------------
#ifndef GPOPT_CXformLeftAntiSemiJoinNotIn2CrossProduct_H
#define GPOPT_CXformLeftAntiSemiJoinNotIn2CrossProduct_H

#include "gpos/base.h"

#include "gpopt/operators/CLogicalLeftAntiSemiJoinNotIn.h"
#include "gpopt/operators/CPatternLeaf.h"
#include "gpopt/operators/CPatternTree.h"
#include "gpopt/xforms/CXformLeftAntiSemiJoin2CrossProduct.h"

namespace gpopt
{
using namespace gpos;

//---------------------------------------------------------------------------
//	@class:
//		CXformLeftAntiSemiJoinNotIn2CrossProduct
//
//	@doc:
//		Transform left anti semi join with NotIn semantics to cross product
//
//---------------------------------------------------------------------------
class CXformLeftAntiSemiJoinNotIn2CrossProduct
	: public CXformLeftAntiSemiJoin2CrossProduct
{
private:
public:
	CXformLeftAntiSemiJoinNotIn2CrossProduct(
		const CXformLeftAntiSemiJoinNotIn2CrossProduct &) = delete;

	// ctor
	explicit CXformLeftAntiSemiJoinNotIn2CrossProduct(CMemoryPool *mp)
		:  // pattern
		  CXformLeftAntiSemiJoin2CrossProduct(GPOS_NEW(mp) CExpression(
			  mp, GPOS_NEW(mp) CLogicalLeftAntiSemiJoinNotIn(mp),
			  GPOS_NEW(mp) CExpression(
				  mp,
				  GPOS_NEW(mp) CPatternTree(
					  mp)),	 // left child is a tree since we may need to push predicates down
			  GPOS_NEW(mp) CExpression(
				  mp, GPOS_NEW(mp) CPatternLeaf(mp)),  // right child
			  GPOS_NEW(mp) CExpression(
				  mp,
				  GPOS_NEW(mp) CPatternTree(
					  mp))	// predicate is a tree since we may need to do clean-up of scalar expression
			  ))
	{
	}

	// ident accessors
	EXformId
	Exfid() const override
	{
		return ExfLeftAntiSemiJoinNotIn2CrossProduct;
	}

	// return a string for xform name
	const CHAR *
	SzId() const override
	{
		return "CXformLeftAntiSemiJoinNotIn2CrossProduct";
	}

};	// class CXformLeftAntiSemiJoinNotIn2CrossProduct

}  // namespace gpopt


#endif	// !GPOPT_CXformLeftAntiSemiJoinNotIn2CrossProduct_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDecorrelator 源码

greenplumn CJoinOrder 源码

greenplumn CJoinOrderDP 源码

greenplumn CJoinOrderDPv2 源码

greenplumn CJoinOrderGreedy 源码

greenplumn CJoinOrderMinCard 源码

greenplumn CSubqueryHandler 源码

greenplumn CXform 源码

greenplumn CXformAntiSemiJoinAntiSemiJoinNotInSwap 源码

greenplumn CXformAntiSemiJoinAntiSemiJoinSwap 源码

0  赞