Package com.semedy.reasoner.edb.ramstore
Class TupleSymbolComparator
java.lang.Object
com.semedy.reasoner.edb.ramstore.TupleSymbolComparator
- All Implemented Interfaces:
TupleBufferComparator
-
Constructor Summary
ConstructorDescriptionTupleSymbolComparator
(SymbolTable symbols1, SymbolTable symbols2, int arity) -
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
-
TupleSymbolComparator
-
-
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
- Throws:
IOException
-
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
-