C++ SDK Documentation  12.0.0
Vertica::PlanContext Class Reference

Shared query-plan state, used when different parts of query planning take place on different nodes. For example, if some work is done on the query initiator node and some is done on each node executing the query, this class stores shared state. More...

Inheritance diagram for Vertica::PlanContext:
Inheritance graph
Collaboration diagram for Vertica::PlanContext:
Collaboration graph

Public Member Functions

 PlanContext (ParamWriter &writer)
 
 PlanContext (ParamWriter &writer, std::vector< std::string > clusterNodes)
 
const std::vector< std::string > & getClusterNodes ()
 
virtual ParamReadergetReader ()
 
virtual ParamWritergetWriter ()
 

Detailed Description

Shared query-plan state, used when different parts of query planning take place on different nodes. For example, if some work is done on the query initiator node and some is done on each node executing the query, this class stores shared state.

Member Function Documentation

const std::vector<std::string>& Vertica::PlanContext::getClusterNodes ( )
inline

Get a list of all of the nodes in the current cluster, by node name

Referenced by Vertica::NodeSpecifyingPlanContext::setTargetNodes().

virtual ParamReader& Vertica::PlanContext::getReader ( )
inlinevirtual

Get a read-only instance of the current context

virtual ParamWriter& Vertica::PlanContext::getWriter ( )
inlinevirtual

Get the current context for writing

Reimplemented in Vertica::ExecutorPlanContext.

Referenced by Vertica::ExecutorPlanContext::getWriter().