Class OrSimplifier
java.lang.Object
com.yahoo.search.predicate.optimization.OrSimplifier
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionprocess
(Predicate predicate, PredicateOptions options) Processes a predicate.simplifyTree
(Predicate predicate)
-
Constructor Details
-
OrSimplifier
public OrSimplifier()
-
-
Method Details
-
process
Description copied from interface:PredicateProcessor
Processes a predicate.- Specified by:
process
in interfacePredicateProcessor
- Returns:
- the processed predicate.
-
simplifyTree
-