Interface TupleBufferComparator

All Known Implementing Classes:
TupleComparator, TupleSelectComparator, TupleSymbolComparator

public interface TupleBufferComparator
a comparator for tuple buffers
Author:
angele
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compare(TupleBuffer tuple1, long[] tuple2)
    compare a buffer with a tuple as array
    int
    compare(TupleBuffer tuple1, TupleBuffer tuple2)
    compare two buffers
  • Method Details

    • compare

      int compare(TupleBuffer tuple1, TupleBuffer tuple2) throws IOException
      compare two buffers
      Parameters:
      tuple1 -
      tuple2 -
      Returns:
      -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2
      Throws:
      IOException
    • compare

      int compare(TupleBuffer tuple1, long[] tuple2)
      compare a buffer with a tuple as array
      Parameters:
      tuple1 -
      tuple2 -
      Returns:
      -1 if tuple1 < tuple2, 0 if tuple1 = tuple2, 1 if tuple1 > tuple2