Class ThruNumberAndStringConversion

java.lang.Object
org.epics.archiverappliance.etl.conversion.ThruNumberAndStringConversion
All Implemented Interfaces:
ConversionFunction

public class ThruNumberAndStringConversion extends Object implements ConversionFunction
Generic class for some standard type conversions. Not all type conversions are supported; some type conversions may be completely (or even worse, incompletely) inaccurate for your use case. Only a few of these have been tested and even those only incompletely. In most cases, you should roll your own conversion function and then apply using the ETLDest interface.
Author:
mshankar
  • Constructor Details

    • ThruNumberAndStringConversion

      public ThruNumberAndStringConversion(ArchDBRTypes destDBRType)
  • Method Details

    • convertStream

      public EventStream convertStream(EventStream srcEventStream, Instant streamStartTime, Instant streamEndTime) throws IOException
      Specified by:
      convertStream in interface ConversionFunction
      Parameters:
      srcEventStream -
      streamStartTime - In the appliance, streams are often chunked. streamStartTime and streamEndTime are the boundaries of the chunk being converted.
      streamEndTime -
      Returns:
      Throws:
      IOException
    • shouldConvert

      public boolean shouldConvert(EventStream srcEventStream, Instant streamStartTime, Instant streamEndTime)
      Specified by:
      shouldConvert in interface ConversionFunction
      Parameters:
      srcEventStream -
      streamStartTime - In the appliance, streams are often chunked. streamStartTime and streamEndTime are the boundaries of the chunk being converted.
      streamEndTime -
      Returns: