Vertica::NodeSpecifyingPlanContext Class Reference

Inheritance diagram for Vertica::NodeSpecifyingPlanContext:

Vertica::PlanContext List of all members.

Public Member Functions

const std::vector< std::string > & getClusterNodes ()
ParamReader & getReader ()
const std::vector< std::string > & getTargetNodes () const
ParamReader * getUDLParamReader ()
ParamWriter * getUDLParamWriter ()
ParamWriter & getWriter ()
 NodeSpecifyingPlanContext (ParamWriter &writer, ParamWriter *udlWriter, std::vector< std::string > clusterNodes)
 NodeSpecifyingPlanContext (ParamWriter &writer)
 NodeSpecifyingPlanContext (ParamWriter &writer, std::vector< std::string > clusterNodes)
 NodeSpecifyingPlanContext (ParamWriter &writer, std::vector< std::string > clusterNodes, std::vector< std::string > targetNodes)
void setTargetNodes (const std::vector< std::string > &nodes)

Detailed Description

Interface that allows storage of query-plan state, when different parts of query planning take place on different computers. For example, if some work is done on the query initiator node and some is done on each node executing the query.

In addition to the functionality provided by PlanContext, NodeSpecifyingPlanContext allows you to specify which nodes the query should run on.


Member Function Documentation

const std::vector<std::string>& Vertica::PlanContext::getClusterNodes (  )  [inline, inherited]

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

ParamReader& Vertica::PlanContext::getReader (  )  [inline, inherited]

Get a read-only instance of the current context

const std::vector<std::string>& Vertica::NodeSpecifyingPlanContext::getTargetNodes (  )  const [inline]

Return the set of nodes that this query is currently set to run on

ParamReader* Vertica::PlanContext::getUDLParamReader (  )  [inline, inherited]

Get a read-only instance of the apportion load context

ParamWriter* Vertica::PlanContext::getUDLParamWriter (  )  [inline, inherited]

Get the current context for apportion load

ParamWriter& Vertica::PlanContext::getWriter (  )  [inline, inherited]

Get the current context for writing

void Vertica::NodeSpecifyingPlanContext::setTargetNodes ( const std::vector< std::string > &  nodes  )  [inline]

Change the set of nodes that the query is intended to run on. Throws UnknownNodeException if any of the specified node names is not actually the name of any node in the cluster.