- java.lang.Object
-
- org.optaplanner.constraint.streams.bavet.common.AbstractNode
-
- org.optaplanner.constraint.streams.bavet.common.AbstractJoinNode<LeftTuple_,Right_,OutTuple_>
-
public abstract class AbstractJoinNode<LeftTuple_ extends Tuple,Right_,OutTuple_ extends Tuple> extends AbstractNode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJoinNode(Function<Right_,IndexProperties> mappingRight, int inputStoreIndexLeft, int inputStoreIndexRight, Consumer<OutTuple_> nextNodesInsert, Consumer<OutTuple_> nextNodesUpdate, Consumer<OutTuple_> nextNodesRetract, Indexer<LeftTuple_,Map<UniTuple<Right_>,OutTuple_>> indexerLeft, Indexer<UniTuple<Right_>,Map<LeftTuple_,OutTuple_>> indexerRight)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcalculateScore()protected abstract IndexPropertiescreateIndexProperties(LeftTuple_ leftTuple)protected abstract OutTuple_createOutTuple(LeftTuple_ leftTuple, UniTuple<Right_> rightTuple)voidinsertLeft(LeftTuple_ leftTuple)voidinsertRight(UniTuple<Right_> rightTuple)voidretractLeft(LeftTuple_ leftTuple)voidretractRight(UniTuple<Right_> rightTuple)voidupdateLeft(LeftTuple_ leftTuple)voidupdateRight(UniTuple<Right_> rightTuple)
-
-
-
Constructor Detail
-
AbstractJoinNode
protected AbstractJoinNode(Function<Right_,IndexProperties> mappingRight, int inputStoreIndexLeft, int inputStoreIndexRight, Consumer<OutTuple_> nextNodesInsert, Consumer<OutTuple_> nextNodesUpdate, Consumer<OutTuple_> nextNodesRetract, Indexer<LeftTuple_,Map<UniTuple<Right_>,OutTuple_>> indexerLeft, Indexer<UniTuple<Right_>,Map<LeftTuple_,OutTuple_>> indexerRight)
-
-
Method Detail
-
insertLeft
public final void insertLeft(LeftTuple_ leftTuple)
-
updateLeft
public void updateLeft(LeftTuple_ leftTuple)
-
retractLeft
public final void retractLeft(LeftTuple_ leftTuple)
-
createIndexProperties
protected abstract IndexProperties createIndexProperties(LeftTuple_ leftTuple)
-
createOutTuple
protected abstract OutTuple_ createOutTuple(LeftTuple_ leftTuple, UniTuple<Right_> rightTuple)
-
calculateScore
public void calculateScore()
- Specified by:
calculateScorein classAbstractNode
-
-