ProcedureProcessorContext

ProcedureProcessorContext is a Context object passed to the ProcedureResultProcessor in its init method.

The interface has these methods:

Method Description
getIncomingResultSets(int resultSetNumber) Get the array of incoming result sets for a given result set number, where each array element is a result set provided by a procedure executing on some server. The size of the array is equal to the number of servers executing this procedure.
getIncomingOutParameters() Get the array of incoming result sets for the out parameters provided by the executing procedures. The size of the array is equal to the number of servers executing this procedure. Each of these result sets will only have one "row" in it, one Object[] corresponding to the out parameters.
getFilter() Returns the whereClause for this execution, or null if there wasn't one.
getTableName() Returns the table name in the format "schemaName.tableName" if this procedure was executed with an ON TABLE clause, or null otherwise.
getColocatedTableNames() Returns an array of colocated tables in this server in the format "schemaName.tableName". If this procedure was not called with an ON TABLE clause, then this method returns null.
getProcedureName() Return the name of this procedure.
isPossibleDuplicate() Return true if this is a re-attempt occurring after a member of the distributed system has failed. For some procedure implementations that are doing write operations, special handling may be necessary if this is a possible duplicate invocation on this data.
isPartitioned(String tableName) Returns true if the specified table is a partitioned table, false if it is a replicated table.