com.hazelcast.query

## Interface VisitablePredicate

- All Known Implementing Classes:
    PagingPredicate, SqlPredicate

      public interface VisitablePredicate

  Predicates which can be visited by optimizer.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Predicate` | `accept(com.hazelcast.query.impl.predicates.Visitor visitor, com.hazelcast.query.impl.Indexes indexes)` Accept visitor.

- - ### Method Detail

    - #### accept

          Predicate accept(com.hazelcast.query.impl.predicates.Visitor visitor,
                           com.hazelcast.query.impl.Indexes indexes)

      Accept visitor. Predicate can either return it's own instance if no modification was done as a result of the visit. In the case there is a change needed then the predicate has to return changed copy of itself. Predicates has to be treated as immutable for optimization purposes.
      Parameters:
        `visitor` - visitor to accept
        `indexes` - indexes
      Returns:
        itself or its changed copy

Copyright © 2019. All rights reserved.