greenplumn CPrintPrefix 源码
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 CColConstraintsArrayMapper 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦