public class RangeVisitor extends AbstractVisitor
The basic idea is to reduce all predicates for a certain attribute into a single predicate verifying its satisfiability on the go. For instance:
CompositeIndexVisitor
is highly dependent on the work of this class
and assumes that predicates fed into it are already range-optimized.Constructor and Description |
---|
RangeVisitor() |
Modifier and Type | Method and Description |
---|---|
Predicate |
visit(AndPredicate predicate,
Indexes indexes) |
Predicate |
visit(BetweenPredicate predicate,
Indexes indexes) |
public Predicate visit(AndPredicate predicate, Indexes indexes)
visit
in interface Visitor
visit
in class AbstractVisitor
public Predicate visit(BetweenPredicate predicate, Indexes indexes)
visit
in interface Visitor
visit
in class AbstractVisitor
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.