Package org.apache.camel.support
Interface RowMapper<T,R>
- Type Parameters:
T- the input type (e.g., ResultSet row, FieldValueList)R- the output type (e.g., Map, domain object)
public interface RowMapper<T,R>
Maps rows from one type to another. Commonly used for converting database rows, API responses, or structured data
into domain objects or maps.
Implementations should be stateless and thread-safe when reused across multiple rows.
-
Method Summary
-
Method Details
-
map
Maps a value from type T to type R.- Parameters:
value- the input value to be mapped- Returns:
- the mapped output value
-