greenplumn CScalarCoerceViaIO 源码
greenplumn CScalarCoerceViaIO 代码
文件路径:/src/backend/gporca/libgpopt/src/operators/CScalarCoerceViaIO.cpp
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// CScalarCoerceViaIO.cpp
//
// @doc:
// Implementation of scalar CoerceViaIO operators
//
// @owner:
//
// @test:
//
//
//---------------------------------------------------------------------------
#include "gpopt/operators/CScalarCoerceViaIO.h"
#include "gpos/base.h"
using namespace gpopt;
using namespace gpmd;
//---------------------------------------------------------------------------
// @function:
// CScalarCoerceViaIO::CScalarCoerceViaIO
//
// @doc:
// Ctor
//
//---------------------------------------------------------------------------
CScalarCoerceViaIO::CScalarCoerceViaIO(CMemoryPool *mp, IMDId *mdid_type,
INT type_modifier, ECoercionForm ecf,
INT location)
: CScalarCoerceBase(mp, mdid_type, type_modifier, ecf, location)
{
}
//---------------------------------------------------------------------------
// @function:
// CScalarCoerceViaIO::Matches
//
// @doc:
// Match function on operator level
//
//---------------------------------------------------------------------------
BOOL
CScalarCoerceViaIO::Matches(COperator *pop) const
{
if (pop->Eopid() == Eopid())
{
CScalarCoerceViaIO *popCoerce = CScalarCoerceViaIO::PopConvert(pop);
return popCoerce->MdidType()->Equals(MdidType()) &&
popCoerce->TypeModifier() == TypeModifier() &&
popCoerce->Ecf() == Ecf() && popCoerce->Location() == Location();
}
return false;
}
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦