org.fusesource.hawtdb.api
Interface Predicate<Key>
- Type Parameters:
Key
-
public interface Predicate<Key>
A predicate is used to narrow down the keys that an application is interested in
accessing.
You can implement custom predicate implementations by implementing the Predicate interface or
you can you some of the predefined predicate classes.
- Author:
- Hiram Chirino
isInterestedInKeysBetween
boolean isInterestedInKeysBetween(Key first,
Key second,
java.util.Comparator comparator)
- Parameters:
first
- the first key in the range or null if unknownsecond
- the last key in the range or null if unknowncomparator
- the Comparator configured for the index, may be null.
- Returns:
- true if the predicate is interested in keys in the range.
isInterestedInKey
boolean isInterestedInKey(Key key,
java.util.Comparator comparator)
- Parameters:
key
- comparator
- the Comparator configured for the index, may be null.
- Returns:
- true if the predicate is interested in the key
Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.