greenplumn CPrintPrefix 源码

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

greenplumn CPrintPrefix 代码

文件路径:/src/backend/gporca/libgpopt/src/base/CPrintPrefix.cpp

//---------------------------------------------------------------------------
//	Greenplum Database
//	Copyright (C) 2009 Greenplum, Inc.
//
//	@filename:
//		CPrintPrefix.cpp
//
//	@doc:
//		Implementation of print prefix class
//---------------------------------------------------------------------------

#include "gpopt/base/CPrintPrefix.h"

#include "gpos/base.h"
#include "gpos/task/IWorker.h"

using namespace gpopt;

//---------------------------------------------------------------------------
//	@function:
//		CPrintPrefix::CPrintPrefix
//
//	@doc:
//		ctor
//
//---------------------------------------------------------------------------
CPrintPrefix::CPrintPrefix(const CPrintPrefix *ppfx, const CHAR *sz)
	: m_ppfx(ppfx), m_sz(sz)
{
	GPOS_ASSERT(nullptr != sz);
}


//---------------------------------------------------------------------------
//	@function:
//		CPrintPrefix::OsPrint
//
//	@doc:
//		print function;
//		recursively traverse the linked list of prefixes and print them
//		in reverse order
//
//---------------------------------------------------------------------------
IOstream &
CPrintPrefix::OsPrint(IOstream &os) const
{
	GPOS_CHECK_STACK_SIZE;

	if (nullptr != m_ppfx)
	{
		(void) m_ppfx->OsPrint(os);
	}

	os << m_sz;
	return os;
}


// EOF

相关信息

greenplumn 源码目录

相关文章

greenplumn CAutoOptCtxt 源码

greenplumn CCTEInfo 源码

greenplumn CCTEMap 源码

greenplumn CCTEReq 源码

greenplumn CCastUtils 源码

greenplumn CColConstraintsArrayMapper 源码

greenplumn CColConstraintsHashMapper 源码

greenplumn CColRef 源码

greenplumn CColRefComputed 源码

greenplumn CColRefSet 源码

0  赞