提交 420f3eb0 编写于 作者: J Jesse Zhang

Make CJob::OsPrint const.

上级 cc7fa71b
......@@ -303,7 +303,7 @@ public:
#ifdef GPOS_DEBUG
// print job description
virtual IOstream &OsPrint(IOstream &os);
virtual IOstream &OsPrint(IOstream &os) const;
// link for running job list
SLink m_linkRunning;
......
......@@ -70,7 +70,7 @@ protected:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override = 0;
IOstream &OsPrint(IOstream &os) const override = 0;
#endif // GPOS_DEBUG
public:
......
......@@ -102,7 +102,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -100,7 +100,7 @@ protected:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override = 0;
IOstream &OsPrint(IOstream &os) const override = 0;
#endif // GPOS_DEBUG
public:
......
......@@ -104,7 +104,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -106,7 +106,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -187,7 +187,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -104,7 +104,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -136,7 +136,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -85,7 +85,7 @@ public:
#ifdef GPOS_DEBUG
// printer
IOstream &OsPrint(IOstream &) override;
IOstream &OsPrint(IOstream &) const override;
#endif // GPOS_DEBUG
// set execution parameters
......
......@@ -90,7 +90,7 @@ public:
#ifdef GPOS_DEBUG
// print function
IOstream &OsPrint(IOstream &os) override;
IOstream &OsPrint(IOstream &os) const override;
// dump state machine diagram in graphviz format
virtual IOstream &
......
......@@ -74,7 +74,7 @@ CJob::FResumeParent() const
//
//---------------------------------------------------------------------------
IOstream &
CJob::OsPrint(IOstream &os)
CJob::OsPrint(IOstream &os) const
{
os << "ID=" << Id();
......
......@@ -281,7 +281,7 @@ CJobGroupExploration::ScheduleJob(CSchedulerContext *psc, CGroup *pgroup,
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupExploration::OsPrint(IOstream &os)
CJobGroupExploration::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
......@@ -329,7 +329,7 @@ CJobGroupExpressionExploration::ScheduleJob(CSchedulerContext *psc,
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupExpressionExploration::OsPrint(IOstream &os)
CJobGroupExpressionExploration::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
......@@ -333,7 +333,7 @@ CJobGroupExpressionImplementation::ScheduleJob(CSchedulerContext *psc,
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupExpressionImplementation::OsPrint(IOstream &os)
CJobGroupExpressionImplementation::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
......@@ -793,7 +793,7 @@ CJobGroupExpressionOptimization::FScheduleCTEOptimization(
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupExpressionOptimization::OsPrint(IOstream &os)
CJobGroupExpressionOptimization::OsPrint(IOstream &os) const
{
os << "Group expr: ";
m_pgexpr->OsPrint(os);
......
......@@ -304,7 +304,7 @@ CJobGroupImplementation::ScheduleJob(CSchedulerContext *psc, CGroup *pgroup,
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupImplementation::OsPrint(IOstream &os)
CJobGroupImplementation::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
......@@ -375,7 +375,7 @@ CJobGroupOptimization::ScheduleJob(CSchedulerContext *psc, CGroup *pgroup,
//
//---------------------------------------------------------------------------
IOstream &
CJobGroupOptimization::OsPrint(IOstream &os)
CJobGroupOptimization::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
......@@ -271,7 +271,7 @@ CJobTest::Loop()
//
//---------------------------------------------------------------------------
IOstream &
CJobTest::OsPrint(IOstream &os)
CJobTest::OsPrint(IOstream &os) const
{
os << "Test job, ";
return CJob::OsPrint(os);
......
......@@ -191,7 +191,7 @@ CJobTransformation::ScheduleJob(CSchedulerContext *psc,
//
//---------------------------------------------------------------------------
IOstream &
CJobTransformation::OsPrint(IOstream &os)
CJobTransformation::OsPrint(IOstream &os) const
{
return m_jsm.OsHistory(os);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册