greenplumn CScalarCoerceViaIO 源码
greenplumn CScalarCoerceViaIO 代码
文件路径:/src/backend/gporca/libgpopt/include/gpopt/operators/CScalarCoerceViaIO.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 VMware, Inc. or its affiliates.
//
// @filename:
// CScalarCoerceViaIO.h
//
// @doc:
// Scalar CoerceViaIO operator,
// the operator captures coercing a value from one type to another, by
// calling the output function of the argument type, and passing the
// result to the input function of the result type.
//
// @owner:
//
// @test:
//
//
//---------------------------------------------------------------------------
#ifndef GPOPT_CScalarCoerceViaIO_H
#define GPOPT_CScalarCoerceViaIO_H
#include "gpos/base.h"
#include "gpopt/operators/CScalarCoerceBase.h"
namespace gpopt
{
using namespace gpos;
//---------------------------------------------------------------------------
// @class:
// CScalarCoerceViaIO
//
// @doc:
// Scalar CoerceViaIO operator
//
//---------------------------------------------------------------------------
class CScalarCoerceViaIO : public CScalarCoerceBase
{
private:
public:
CScalarCoerceViaIO(const CScalarCoerceViaIO &) = delete;
// ctor
CScalarCoerceViaIO(CMemoryPool *mp, IMDId *mdid_type, INT type_modifier,
ECoercionForm dxl_coerce_format, INT location);
// dtor
~CScalarCoerceViaIO() override = default;
EOperatorId
Eopid() const override
{
return EopScalarCoerceViaIO;
}
// return a string for operator name
const CHAR *
SzId() const override
{
return "CScalarCoerceViaIO";
}
// match function
BOOL Matches(COperator *) const override;
// sensitivity to order of inputs
BOOL
FInputOrderSensitive() const override
{
return false;
}
// conversion function
static CScalarCoerceViaIO *
PopConvert(COperator *pop)
{
GPOS_ASSERT(nullptr != pop);
GPOS_ASSERT(EopScalarCoerceViaIO == pop->Eopid());
return dynamic_cast<CScalarCoerceViaIO *>(pop);
}
}; // class CScalarCoerceViaIO
} // namespace gpopt
#endif // !GPOPT_CScalarCoerceViaIO_H
// EOF
相关信息
相关文章
greenplumn CExpressionFactorizer 源码
greenplumn CExpressionHandle 源码
greenplumn CExpressionPreprocessor 源码
greenplumn CExpressionUtils 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
6、 golang
-
8、 openharmony