Interface CompareEventLine
- All Known Implementing Classes:
CompareEvent
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncompare(byte[] line1, byte[] line2) This is the actual comparison function.
-
Method Details
-
compare
This is the actual comparison function.- Parameters:
line1- - A full PB lineline2- - A full PB line- Returns:
- NextStep one of the eumuration of NextStep
- Throws:
IOException-
-