greenplumn CXformLeftAntiSemiJoinNotIn2CrossProduct 源码
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 CJoinOrderGreedy 源码
greenplumn CJoinOrderMinCard 源码
greenplumn CSubqueryHandler 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony