//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2013 EMC Corp. // // @filename: // CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn.h // // @doc: // Turn LAS apply into LAS join (NotIn semantics) //--------------------------------------------------------------------------- #ifndef GPOPT_CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn_H #define GPOPT_CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn_H #include "gpos/base.h" #include "gpopt/operators/CLogicalLeftAntiSemiApplyNotIn.h" #include "gpopt/operators/CLogicalLeftAntiSemiJoinNotIn.h" #include "gpopt/xforms/CXformApply2Join.h" namespace gpopt { using namespace gpos; //--------------------------------------------------------------------------- // @class: // CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn // // @doc: // Transform Apply into Join by decorrelating the inner side // //--------------------------------------------------------------------------- class CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn : public CXformApply2Join { private: public: CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn( const CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn &) = delete; // ctor explicit CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn(CMemoryPool *mp) : CXformApply2Join(mp, true /*fDeepTree*/) { } // dtor ~CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn() override = default; // ident accessors EXformId Exfid() const override { return ExfLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn; } // xform name const CHAR * SzId() const override { return "CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn"; } // compute xform promise for a given expression handle EXformPromise Exfp(CExpressionHandle &exprhdl) const override; // actual transform void Transform(CXformContext *pxfctxt, CXformResult *pxfres, CExpression *pexpr) const override; }; // class CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn } // namespace gpopt #endif // !GPOPT_CXformLeftAntiSemiApplyNotIn2LeftAntiSemiJoinNotIn_H // EOF