greenplumn CDXLPhysicalHashJoin 源码

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

greenplumn CDXLPhysicalHashJoin 代码

文件路径:/src/backend/gporca/libnaucrates/include/naucrates/dxl/operators/CDXLPhysicalHashJoin.h

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2010 Greenplum, Inc.
//
//	@filename:
//		CDXLPhysicalHashJoin.h
//
//	@doc:
//		Class for representing DXL hashjoin operators.
//---------------------------------------------------------------------------



#ifndef GPDXL_CDXLPhysicalHashJoin_H
#define GPDXL_CDXLPhysicalHashJoin_H

#include "gpos/base.h"

#include "naucrates/dxl/operators/CDXLPhysicalJoin.h"

namespace gpdxl
{
// indices of hash join elements in the children array
enum Edxlhj
{
	EdxlhjIndexProjList = 0,
	EdxlhjIndexFilter,
	EdxlhjIndexJoinFilter,
	EdxlhjIndexHashCondList,
	EdxlhjIndexHashLeft,
	EdxlhjIndexHashRight,
	EdxlhjIndexSentinel
};

//---------------------------------------------------------------------------
//	@class:
//		CDXLPhysicalHashJoin
//
//	@doc:
//		Class for representing DXL hashjoin operators
//
//---------------------------------------------------------------------------
class CDXLPhysicalHashJoin : public CDXLPhysicalJoin
{
private:
public:
	CDXLPhysicalHashJoin(const CDXLPhysicalHashJoin &) = delete;

	// ctor/dtor
	CDXLPhysicalHashJoin(CMemoryPool *mp, EdxlJoinType join_type);

	// accessors
	Edxlopid GetDXLOperator() const override;
	const CWStringConst *GetOpNameStr() const override;

	// serialize operator in DXL format
	void SerializeToDXL(CXMLSerializer *xml_serializer,
						const CDXLNode *dxlnode) const override;

	// conversion function
	static CDXLPhysicalHashJoin *
	Cast(CDXLOperator *dxl_op)
	{
		GPOS_ASSERT(nullptr != dxl_op);
		GPOS_ASSERT(EdxlopPhysicalHashJoin == dxl_op->GetDXLOperator());
		return dynamic_cast<CDXLPhysicalHashJoin *>(dxl_op);
	}

#ifdef GPOS_DEBUG
	// checks whether the operator has valid structure, i.e. number and
	// types of child nodes
	void AssertValid(const CDXLNode *, BOOL validate_children) const override;
#endif	// GPOS_DEBUG
};
}  // namespace gpdxl
#endif	// !GPDXL_CDXLPhysicalHashJoin_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDXLColDescr 源码

greenplumn CDXLColRef 源码

greenplumn CDXLCtasStorageOptions 源码

greenplumn CDXLDatum 源码

greenplumn CDXLDatumBool 源码

greenplumn CDXLDatumGeneric 源码

greenplumn CDXLDatumInt2 源码

greenplumn CDXLDatumInt4 源码

greenplumn CDXLDatumInt8 源码

greenplumn CDXLDatumOid 源码

0  赞