Interface CompareEventLine

  • All Known Implementing Classes:
    ComparePBEvent

    public interface CompareEventLine
    This is a special kind of comparison function meant for a combo binary/linear search function. This takes in a byte sequence (perhaps from a PB file) and compares it to the point (timestamp) being sought. It then returns one of the enums to direct the direction of search. We assume that time is from the left (past) to the right (future).
    Author:
    mshankar
    • Method Summary

      Modifier and Type Method Description
      CompareEventLine.NextStep compare​(byte[] line1, byte[] line2)
      This is the actual comparison function.
    • Method Detail

      • compare

        CompareEventLine.NextStep compare​(byte[] line1,
                                          byte[] line2)
                                   throws IOException
        This is the actual comparison function.
        Parameters:
        line1 - - A full PB line
        line2 - - A full PB line
        Returns:
        NextStep one of the eumuration of NextStep
        Throws:
        IOException -