Package com.semedy.reasoner.api.edb
Interface TupleBufferComparator
- All Known Implementing Classes:
TupleComparator
,TupleSelectComparator
,TupleSymbolComparator
public interface TupleBufferComparator
a comparator for tuple buffers
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(TupleBuffer tuple1, long[] tuple2) compare a buffer with a tuple as arrayint
compare
(TupleBuffer tuple1, TupleBuffer tuple2) compare two buffers
-
Method Details
-
compare
compare two buffers- Parameters:
tuple1
-tuple2
-- Returns:
- -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2
- Throws:
IOException
-
compare
compare a buffer with a tuple as array- Parameters:
tuple1
-tuple2
-- Returns:
- -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2
-