Package org.openl.rules.dt.index
Class EqualsIndexV2
- java.lang.Object
-
- org.openl.rules.dt.index.EqualsIndexV2
-
- All Implemented Interfaces:
IRuleIndex
public class EqualsIndexV2 extends Object implements IRuleIndex
A new implementation of Equals Index for decision tables.- Author:
- Vladyslav Pikus
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEqualsIndexV2.Builder
-
Constructor Summary
Constructors Constructor Description EqualsIndexV2(DecisionTableRuleNode nextNode, Map<Object,int[]> index, int[] emptyRules, ConditionCasts conditionCasts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]collectRules()DecisionTableRuleNodefindNode(Object value, DecisionTableRuleNode prevResult)DecisionTableRuleNodegetEmptyOrFormulaNodes()Iterable<? extends DecisionTableRuleNode>nodes()
-
-
-
Constructor Detail
-
EqualsIndexV2
public EqualsIndexV2(DecisionTableRuleNode nextNode, Map<Object,int[]> index, int[] emptyRules, ConditionCasts conditionCasts)
-
-
Method Detail
-
findNode
public DecisionTableRuleNode findNode(Object value, DecisionTableRuleNode prevResult)
- Specified by:
findNodein interfaceIRuleIndex
-
nodes
public Iterable<? extends DecisionTableRuleNode> nodes()
- Specified by:
nodesin interfaceIRuleIndex
-
collectRules
public int[] collectRules()
- Specified by:
collectRulesin interfaceIRuleIndex
-
getEmptyOrFormulaNodes
public DecisionTableRuleNode getEmptyOrFormulaNodes()
- Specified by:
getEmptyOrFormulaNodesin interfaceIRuleIndex
-
-