1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var IncomingShuffleState_1 = require("./IncomingShuffleState");
|
4 | var OutgoingShuffleState_1 = require("./OutgoingShuffleState");
|
5 | var ShuffleStateFactory = (function () {
|
6 | function ShuffleStateFactory(logger, asyncExecService) {
|
7 | this.logger = logger;
|
8 | this.asyncExecService = asyncExecService;
|
9 | }
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | ShuffleStateFactory.prototype.createOutgoingShuffleState = function (localNode, destinationNodePointer, shuffleSet) {
|
19 | return new OutgoingShuffleState_1.OutgoingShuffleState(localNode, destinationNodePointer, shuffleSet, this.asyncExecService, this.logger);
|
20 | };
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | ShuffleStateFactory.prototype.createIncomingShuffleState = function (localNode, sourcePointer) {
|
29 | return new IncomingShuffleState_1.IncomingShuffleState(localNode, sourcePointer, this.asyncExecService, this.logger);
|
30 | };
|
31 | return ShuffleStateFactory;
|
32 | }());
|
33 | exports.ShuffleStateFactory = ShuffleStateFactory;
|
34 |
|
\ | No newline at end of file |