Class ThruNumberAndStringConversion
java.lang.Object
org.epics.archiverappliance.etl.conversion.ThruNumberAndStringConversion
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertStream(EventStream srcEventStream, Instant streamStartTime, Instant streamEndTime) booleanshouldConvert(EventStream srcEventStream, Instant streamStartTime, Instant streamEndTime)
-
Constructor Details
-
ThruNumberAndStringConversion
-
-
Method Details
-
convertStream
public EventStream convertStream(EventStream srcEventStream, Instant streamStartTime, Instant streamEndTime) throws IOException - Specified by:
convertStreamin interfaceConversionFunction- 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:
shouldConvertin interfaceConversionFunction- Parameters:
srcEventStream-streamStartTime- In the appliance, streams are often chunked. streamStartTime and streamEndTime are the boundaries of the chunk being converted.streamEndTime-- Returns:
-