Package com.semedy.reasoner.edb.ramstore
Class TupleComparator
java.lang.Object
com.semedy.reasoner.edb.ramstore.TupleComparator
- All Implemented Interfaces:
TupleBufferComparator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(TupleBuffer buffer1, long[] buffer2) compare a buffer with a tuple as arrayint
compare
(TupleBuffer buffer1, TupleBuffer buffer2) compare two buffers
-
Constructor Details
-
TupleComparator
public TupleComparator(int arity)
-
-
Method Details
-
compare
Description copied from interface:TupleBufferComparator
compare two buffers- Specified by:
compare
in interfaceTupleBufferComparator
- Returns:
- -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2
-
compare
Description copied from interface:TupleBufferComparator
compare a buffer with a tuple as array- Specified by:
compare
in interfaceTupleBufferComparator
- Returns:
- -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2
-