org.xerial.db
Interface TupleComparator
- All Superinterfaces:
- Comparator<Tuple>
public interface TupleComparator
- extends Comparator<Tuple>
Comparator defines sort total order of tuples: that is
given two tuples t1, t2;
1. when t1.equals(t2), compare(t1, t2) = 0, that is, compare(t1, t1) = 0
2. when t1.compare(t1, t2) < 0, t2.compare(t1) > 0. (reflexible)
3. if compare(t1, t2) < 0 and compare(t2, t3) < 0, then compare(t1, t3) < 0 (transitivity)
- Author:
- leo
compare
int compare(Tuple t1,
Tuple t2)
- Specified by:
compare in interface Comparator<Tuple>

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.