greenplumn CLogicalLeftAntiSemiJoinNotIn 源码

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

greenplumn CLogicalLeftAntiSemiJoinNotIn 代码

文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CLogicalLeftAntiSemiJoinNotIn.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2013 EMC Corp.
//
//	@filename:
//		CLogicalLeftAntiSemiJoinNotIn.h
//
//	@doc:
//		Left anti semi join operator with the NotIn semantics
//			1 not in (2,3) --> true
//			1 not in (1,2,3) --> false
//			1 not in (null, 2) --> unknown
//			1 not in (1, null, 2) --> false
//			null not in (1,2) --> unknown
//			null not in (empty) --> true
//			null not in (1,2,null) --> unknown
//---------------------------------------------------------------------------
#ifndef GPOS_CLogicalLeftAntiSemiJoinNotIn_H
#define GPOS_CLogicalLeftAntiSemiJoinNotIn_H

#include "gpos/base.h"

#include "gpopt/operators/CLogicalLeftAntiSemiJoin.h"

namespace gpopt
{
//---------------------------------------------------------------------------
//	@class:
//		CLogicalLeftAntiSemiJoinNotIn
//
//	@doc:
//		Left anti semi join operator with the NotIn semantics
//
//---------------------------------------------------------------------------
class CLogicalLeftAntiSemiJoinNotIn : public CLogicalLeftAntiSemiJoin
{
private:
public:
	CLogicalLeftAntiSemiJoinNotIn(const CLogicalLeftAntiSemiJoinNotIn &) =
		delete;

	// ctor
	explicit CLogicalLeftAntiSemiJoinNotIn(
		CMemoryPool *mp, CXform::EXformId origin_xform = CXform::ExfSentinel);

	// dtor
	~CLogicalLeftAntiSemiJoinNotIn() override = default;

	// ident accessors
	EOperatorId
	Eopid() const override
	{
		return EopLogicalLeftAntiSemiJoinNotIn;
	}

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

	//-------------------------------------------------------------------------------------
	// Transformations
	//-------------------------------------------------------------------------------------

	// candidate set of xforms
	CXformSet *PxfsCandidates(CMemoryPool *mp) const override;

	//-------------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------------
	//-------------------------------------------------------------------------------------

	// conversion function
	static CLogicalLeftAntiSemiJoinNotIn *
	PopConvert(COperator *pop)
	{
		GPOS_ASSERT(nullptr != pop);
		GPOS_ASSERT(EopLogicalLeftAntiSemiJoinNotIn == pop->Eopid());

		return dynamic_cast<CLogicalLeftAntiSemiJoinNotIn *>(pop);
	}

};	// class CLogicalLeftAntiSemiJoinNotIn

}  // namespace gpopt


#endif	// !GPOS_CLogicalLeftAntiSemiJoinNotIn_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CExpression 源码

greenplumn CExpressionFactorizer 源码

greenplumn CExpressionHandle 源码

greenplumn CExpressionPreprocessor 源码

greenplumn CExpressionUtils 源码

greenplumn CHashedDistributions 源码

greenplumn CLogical 源码

greenplumn CLogicalApply 源码

greenplumn CLogicalAssert 源码

greenplumn CLogicalBitmapTableGet 源码

0  赞