Class ComparePBEvent
- java.lang.Object
-
- edu.stanford.slac.archiverappliance.PlainPB.ComparePBEvent
-
- All Implemented Interfaces:
CompareEventLine
public class ComparePBEvent extends Object implements CompareEventLine
A comparator for PB events that is used in searching.- Author:
- mshankar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.stanford.slac.archiverappliance.PB.search.CompareEventLine
CompareEventLine.NextStep
-
-
Constructor Summary
Constructors Constructor Description ComparePBEvent(ArchDBRTypes type, int secondsintoyear)
-
-
-
Constructor Detail
-
ComparePBEvent
public ComparePBEvent(ArchDBRTypes type, int secondsintoyear)
-
-
Method Detail
-
compare
public CompareEventLine.NextStep compare(byte[] line1, byte[] line2) throws IOException
Description copied from interface:CompareEventLine
This is the actual comparison function.- Specified by:
compare
in interfaceCompareEventLine
- Parameters:
line1
- - A full PB lineline2
- - A full PB line- Returns:
- NextStep one of the eumuration of NextStep
- Throws:
IOException
-
-
-