@Override public void run() throws Exception { if (inFirstIteration()) { if (this.driver instanceof ResettableDriver) { // initialize the repeatable driver ((ResettableDriver<?, ?>) this.driver).initialize(); } } else { reinstantiateDriver(); resetAllInputs(); // re-read the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, superstepNum); } } // call the parent to execute the superstep super.run(); // release the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); releaseBroadcastVariables(name, superstepNum, this.runtimeUdfContext); } }
@Override public void run() throws Exception { if (inFirstIteration()) { if (this.driver instanceof ResettableDriver) { // initialize the repeatable driver ((ResettableDriver<?, ?>) this.driver).initialize(); } } else { reinstantiateDriver(); resetAllInputs(); // re-read the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, superstepNum); } } // call the parent to execute the superstep super.run(); // release the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); releaseBroadcastVariables(name, superstepNum, this.runtimeUdfContext); } }
@Override public void run() throws Exception { if (inFirstIteration()) { if (this.driver instanceof ResettableDriver) { // initialize the repeatable driver ((ResettableDriver<?, ?>) this.driver).initialize(); } } else { reinstantiateDriver(); resetAllInputs(); // re-read the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, superstepNum); } } // call the parent to execute the superstep super.run(); // release the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); releaseBroadcastVariables(name, superstepNum, this.runtimeUdfContext); } }
@Override public void run() throws Exception { if (inFirstIteration()) { if (this.driver instanceof ResettableDriver) { // initialize the repeatable driver ((ResettableDriver<?, ?>) this.driver).initialize(); } } else { reinstantiateDriver(); resetAllInputs(); // re-read the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, superstepNum); } } // call the parent to execute the superstep super.run(); // release the iterative broadcast variables for (int i : this.iterativeBroadcastInputs) { final String name = getTaskConfig().getBroadcastInputName(i); releaseBroadcastVariables(name, superstepNum, this.runtimeUdfContext); } }
final String name = this.config.getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, 1 /* superstep one for the start */);
final String name = this.config.getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, 1 /* superstep one for the start */);
final String name = this.config.getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, 1 /* superstep one for the start */);
final String name = this.config.getBroadcastInputName(i); readAndSetBroadcastInput(i, name, this.runtimeUdfContext, 1 /* superstep one for the start */);