Package com.ocient.util
Interface RowTransformer
- All Known Implementing Classes:
NullRowTransformer,ResultSetExtractor.ExtractTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for applying column value transformations directly within data fetch deserialization
threads. By implementing this interface, data rows undergo transformation closer to the data
source, reducing the likelihood of these rows being relegated to the garbage collector's "Old
Generation" memory space.
For instance, consider a scenario where the output is formatted into a row-delimited structure (Data Extract). Here, each row is initially represented as a List
-
Method Summary
-
Method Details
-
transform
Apply the transformation to theRow.- Parameters:
row- TheRowto be transformed.- Returns:
- Returns a transformed Row object. The exact nature of the transformation and the
resultant format depends on the specific implementation. The transformation should maintain
data integrity while optimizing its representation for memory efficiency and performance.
Note: THIS FUNCTION IS NOT INTENDED TO BE THREAD SAFE.
-