greenplumn CXformInnerApplyWithOuterKey2InnerJoin 源码

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

greenplumn CXformInnerApplyWithOuterKey2InnerJoin 代码

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

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2012 EMC Corp.
//
//	@filename:
//		CXformInnerApplyWithOuterKey2InnerJoin.h
//
//	@doc:
//		Turn inner apply into inner join under the condition that
//		outer child of apply has key
//---------------------------------------------------------------------------
#ifndef GPOPT_CXformInnerApplyWithOuterKey2InnerJoin_H
#define GPOPT_CXformInnerApplyWithOuterKey2InnerJoin_H

#include "gpos/base.h"

#include "gpopt/xforms/CDecorrelator.h"
#include "gpopt/xforms/CXformExploration.h"

namespace gpopt
{
using namespace gpos;

//---------------------------------------------------------------------------
//	@class:
//		CXformInnerApplyWithOuterKey2InnerJoin
//
//	@doc:
//		Transform inner apply into inner join under the condition that
//		outer child of apply has key
//
//---------------------------------------------------------------------------
class CXformInnerApplyWithOuterKey2InnerJoin : public CXformExploration
{
private:
public:
	CXformInnerApplyWithOuterKey2InnerJoin(
		const CXformInnerApplyWithOuterKey2InnerJoin &) = delete;

	// ctor
	explicit CXformInnerApplyWithOuterKey2InnerJoin(CMemoryPool *mp);

	// dtor
	~CXformInnerApplyWithOuterKey2InnerJoin() override = default;

	// transformation promise
	EXformPromise Exfp(CExpressionHandle &exprhdl) const override;

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

	const CHAR *
	SzId() const override
	{
		return "CXformInnerApplyWithOuterKey2InnerJoin";
	}

	// is transformation an Apply decorrelation (Apply To Join) xform?
	BOOL
	FApplyDecorrelating() const override
	{
		return true;
	}

	// actual transform
	void Transform(CXformContext *pxfctxt, CXformResult *pxfres,
				   CExpression *pexpr) const override;


};	// class CXformInnerApplyWithOuterKey2InnerJoin

}  // namespace gpopt

#endif	// !GPOPT_CXformInnerApplyWithOuterKey2InnerJoin_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDecorrelator 源码

greenplumn CJoinOrder 源码

greenplumn CJoinOrderDP 源码

greenplumn CJoinOrderDPv2 源码

greenplumn CJoinOrderGreedy 源码

greenplumn CJoinOrderMinCard 源码

greenplumn CSubqueryHandler 源码

greenplumn CXform 源码

greenplumn CXformAntiSemiJoinAntiSemiJoinNotInSwap 源码

greenplumn CXformAntiSemiJoinAntiSemiJoinSwap 源码

0  赞