com.vertica.sdk.NodeSpecifyingPlanContext Class Reference

Inheritance diagram for com.vertica.sdk.NodeSpecifyingPlanContext:

com.vertica.sdk.PlanContext List of all members.

Public Member Functions

ArrayList< String > getClusterNodes ()
ParamReader getReader ()
ArrayList< String > getTargetNodes ()
ParamWriter getWriter ()
 NodeSpecifyingPlanContext (ParamWriter writer)
 NodeSpecifyingPlanContext (ParamWriter writer, ArrayList< String > clusterNodes)
 NodeSpecifyingPlanContext (ParamWriter writer, ArrayList< String > clusterNodes, ArrayList< String > targetNodes)
void setTargetNodes (ArrayList< String > nodes) throws UdfException

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

ArrayList<String> com.vertica.sdk.PlanContext.getClusterNodes (  )  [inherited]

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

ParamReader com.vertica.sdk.PlanContext.getReader (  )  [inherited]

Get a read-only instance of the current context

ArrayList<String> com.vertica.sdk.NodeSpecifyingPlanContext.getTargetNodes (  ) 

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

ParamWriter com.vertica.sdk.PlanContext.getWriter (  )  [inherited]

Get the current context for writing

void com.vertica.sdk.NodeSpecifyingPlanContext.setTargetNodes ( ArrayList< String >  nodes  )  throws UdfException

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

Exceptions:
UdfException