Class AndOrSimplifier
- java.lang.Object
-
- com.yahoo.search.predicate.optimization.AndOrSimplifier
-
- All Implemented Interfaces:
PredicateProcessor
public class AndOrSimplifier extends Object implements PredicateProcessor
Simplifies a predicate by: - Combining child-AND/OR nodes with direct parents of the same type - Pushing negations down to leaf nodes by using De Morgan's law.- Author:
- Magnar Nedland, bjorncs
-
-
Constructor Summary
Constructors Constructor Description AndOrSimplifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate
process(Predicate predicate, PredicateOptions options)
Processes a predicate.Predicate
simplifySubTree(Predicate predicate, boolean negated)
-
-
-
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.
-
-