Class Solace.SolaceRecordMapper
java.lang.Object
org.apache.beam.sdk.io.solace.data.Solace.SolaceRecordMapper
- Enclosing class:
Solace
A utility class for mapping
BytesXMLMessage
instances to Solace.Record
objects.
This simplifies the process of converting raw Solace messages into a format suitable for use
within Apache Beam pipelines.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Solace.Record
map
(@Nullable BytesXMLMessage msg) Maps aBytesXMLMessage
(if not null) to aSolace.Record
.
-
Constructor Details
-
SolaceRecordMapper
public SolaceRecordMapper()
-
-
Method Details
-
map
Maps aBytesXMLMessage
(if not null) to aSolace.Record
.Extracts relevant information from the message, including payload, metadata, and destination details.
- Parameters:
msg
- The Solace message to map.- Returns:
- A Solace Record representing the message, or null if the input message was null.
-