Class FileBackedPBEventStream

    • Constructor Detail

      • FileBackedPBEventStream

        public FileBackedPBEventStream​(String pvname,
                                       Path path,
                                       ArchDBRTypes type)
                                throws IOException
        Used when we want to include data from the entire file.
        Parameters:
        pvname - The PV name
        path - path
        type - Enum ArchDBRTypes
        Throws:
        IOException -  
      • FileBackedPBEventStream

        public FileBackedPBEventStream​(String pvname,
                                       Path path,
                                       ArchDBRTypes type,
                                       long startPosition,
                                       long endPosition)
                                throws IOException
        Used when we know the file locations of the start and end. Really only used in one utility...
        Parameters:
        pvname - The PV name
        path - Path
        type - Enum ArchDBRTypes
        startPosition - The file location of the start
        endPosition - The file location of the end
        Throws:
        IOException -  
      • FileBackedPBEventStream

        public FileBackedPBEventStream​(String pvname,
                                       Path path,
                                       ArchDBRTypes dbrtype,
                                       Timestamp startTime,
                                       Timestamp endTime,
                                       boolean skipSearch)
                                throws IOException
        Used when we know the start and end times. There are six cases here; see the FileBackedIteratorTest for more details. For performance reasons, we want to use the location based iterator as much as possible. But in case of issues, we do not want to not return data. So, fall back to a time based iterator
        Parameters:
        pvname - The PV name
        path - Path
        dbrtype - Enum ArchDBRTypes
        startTime - The start time
        endTime - The end time
        skipSearch - true or false
        Throws:
        IOException -