com.vertica.sdk.ExecutorPlanContext Class Reference
Inheritance diagram for com.vertica.sdk.ExecutorPlanContext:
Collaboration diagram for com.vertica.sdk.ExecutorPlanContext:
| Public Member Functions | |
|---|---|
| ExecutorPlanContext (ExecutorParamWriter writer, ArrayList< String > clusterNodes, ArrayList< String > targetNodes, boolean canApportionSource, int maxAllowedThreads) | |
| ExecutorPlanContext (ExecutorParamWriter writer, ArrayList< String > clusterNodes, ArrayList< String > targetNodes, boolean canApportionSource, int maxAllowedThreads, int actualThreads) | |
| boolean | canApportionSource () |
| ArrayList< String > | getClusterNodes () |
| int | getLoadConcurrency () |
| int | getMaxAllowedThreads () |
| ParamReader | getReader () |
| SourceIterator | getSources () |
| ArrayList< String > | getTargetNodes () |
| ExecutorParamWriter | getWriter () |
| void | setSources (SourceIterator sources) |
| void | setTargetNodes (ArrayList< String > nodes) throws UdfException |
Detailed Description
A PlanContext object whose scope is limited to a single executor node: it and its parameters will never be serialized. In addition to providing information about nodes involved in a query, it indicates how many threads are available and allocated for a load. This class is used for UDLs.
Member Function Documentation
◆getClusterNodes()
ArrayList<String> com.vertica.sdk.PlanContext.getClusterNodes()
inherited Returns A list of all of the nodes in the current cluster, by node name
Referenced by com.vertica.sdk.NodeSpecifyingPlanContext.setTargetNodes().
◆getReader()
ParamReader com.vertica.sdk.PlanContext.getReader()
inherited Returns A read-only instance of the current context
◆getTargetNodes()
ArrayList<String> com.vertica.sdk.NodeSpecifyingPlanContext.getTargetNodes()
inherited Returns The set of nodes that this query is currently set to run on
◆setTargetNodes()
void com.vertica.sdk.NodeSpecifyingPlanContext.setTargetNodes(ArrayList< String > nodes) throws UdfException
inherited Change the set of nodes that the query is intended to run on.
Parameters
nodes: new target nodes
Exceptions
UdfException: if any of the specified node names is not actually the name of any node in the cluster.