-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5651 Move tuple order correction from runtime to network build time
- Loading branch information
Showing
11 changed files
with
281 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
drools-core/src/main/java/org/drools/core/phreak/DetachedTuple.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.drools.core.phreak; | ||
|
||
import org.drools.core.common.DefaultFactHandle; | ||
import org.drools.core.reteoo.TupleImpl; | ||
|
||
public class DetachedTuple { | ||
private DefaultFactHandle fh; | ||
private TupleImpl tuple; | ||
|
||
public DetachedTuple(DefaultFactHandle fh, TupleImpl tuple) { | ||
this.fh = fh; | ||
this.tuple = tuple; | ||
} | ||
|
||
public void reattachToLeft() { | ||
fh.getLinkedTuples().reattachToLeft(tuple); | ||
} | ||
|
||
public void reattachToRight() { | ||
fh.getLinkedTuples().reattachToRight(tuple); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.