greenplumn CDXLDirectDispatchInfo 源码

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

greenplumn CDXLDirectDispatchInfo 代码

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

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2014 VMware, Inc. or its affiliates.
//
//	@filename:
//		CDXLDirectDispatchInfo.h
//
//	@doc:
//		Class for representing the specification of directly dispatchable plans
//
//	@owner:
//
//
//	@test:
//
//---------------------------------------------------------------------------

#ifndef GPDXL_CDXLDirectDispatchInfo_H
#define GPDXL_CDXLDirectDispatchInfo_H

#include "gpos/base.h"

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

namespace gpdxl
{
using namespace gpos;

// fwd decl
class CXMLSerializer;

//---------------------------------------------------------------------------
//	@class:
//		CDXLDirectDispatchInfo
//
//	@doc:
//		Class for representing the specification of directly dispatchable plans
//
//---------------------------------------------------------------------------
class CDXLDirectDispatchInfo : public CRefCount
{
private:
	// constants for determining segments to dispatch to
	CDXLDatum2dArray *m_dispatch_identifer_datum_array;

	// true indicates m_dispatch_identifer_datum_array contains raw
	// gp_segment_id values rather than hashable datums
	BOOL m_contains_raw_values;

public:
	CDXLDirectDispatchInfo(const CDXLDirectDispatchInfo &) = delete;

	// ctor
	explicit CDXLDirectDispatchInfo(
		CDXLDatum2dArray *dispatch_identifer_datum_array,
		BOOL contains_raw_values);

	// dtor
	~CDXLDirectDispatchInfo() override;

	BOOL
	FContainsRawValues() const
	{
		return m_contains_raw_values;
	}

	// accessor to array of datums
	CDXLDatum2dArray *
	GetDispatchIdentifierDatumArray() const
	{
		return m_dispatch_identifer_datum_array;
	}

	// serialize the datum as the given element
	void Serialize(CXMLSerializer *xml_serializer);
};
}  // namespace gpdxl

#endif	// !GPDXL_CDXLDirectDispatchInfo_H

// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CDXLColDescr 源码

greenplumn CDXLColRef 源码

greenplumn CDXLCtasStorageOptions 源码

greenplumn CDXLDatum 源码

greenplumn CDXLDatumBool 源码

greenplumn CDXLDatumGeneric 源码

greenplumn CDXLDatumInt2 源码

greenplumn CDXLDatumInt4 源码

greenplumn CDXLDatumInt8 源码

greenplumn CDXLDatumOid 源码

0  赞