10 static std::unique_ptr<Cast>
11 Create(
Oid typ_oid, std::unique_ptr<ExprNode>&& child,
bool implicit);
15 Datum Eval(
const std::vector<NullableDatumRef>& record)
const override;
17 Datum Eval(
const char* record)
const override;
22 Cast(
Oid typ_oid, std::unique_ptr<ExprNode>&& child,
bool implicit);
Cast(Oid typ_oid, std::unique_ptr< ExprNode > &&child, bool implicit)
Definition: Cast.cpp:7
Datum Eval(const std::vector< NullableDatumRef > &record) const override
Evaluate function upon a deserialized record.
Definition: Cast.cpp:27
FunctionInfo m_func
Definition: Cast.h:24
static std::unique_ptr< Cast > Create(Oid typ_oid, std::unique_ptr< ExprNode > &&child, bool implicit)
Definition: Cast.cpp:19
~Cast() override
Definition: Cast.cpp:24
void node_properties_to_string(std::string &buf, int indent) const override
Definition: Cast.cpp:38
A Datum stores and possibly manage the memory resource of a read-only value of a plain fixed-length C...
Definition: datum.h:250
ExprNode is an abstract class of all expressions.
Definition: ExprNode.h:29
uint32_t Oid
Definition: tdb_base.h:210
std::function< Datum(FunctionCallInfo &)> FunctionInfo
An FMGR managed function should be declared as.
Definition: fmgr.h:50