Class OrSimplifier
- java.lang.Object
-
- com.yahoo.search.predicate.optimization.OrSimplifier
-
- All Implemented Interfaces:
PredicateProcessor
public class OrSimplifier extends java.lang.Object implements PredicateProcessor
Simplifies Disjunction nodes where all children are of type FeatureSet. All FeatureSet that share the same key are merged into a single FeatureSet. The Disjunction is removed if all children merges into a single feature set.- Author:
- bjorncs
-
-
Constructor Summary
Constructors Constructor Description OrSimplifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate
process(Predicate predicate, PredicateOptions options)
Processes a predicate.Predicate
simplifyTree(Predicate predicate)
-
-
-
Method Detail
-
process
public Predicate process(Predicate predicate, PredicateOptions options)
Description copied from interface:PredicateProcessor
Processes a predicate.- Specified by:
process
in interfacePredicateProcessor
- Returns:
- the processed predicate.
-
-