Interface ValueMapperWithKey<K,V,VR>
- Type Parameters:
K- key typeV- value typeVR- mapped value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The
ValueMapperWithKey interface for mapping a value to a new value of arbitrary type.
This is a stateless record-by-record operation, i.e, apply(Object, Object) is invoked individually for each
record of a stream (cf. FixedKeyProcessor for stateful value transformation).
If ValueMapperWithKey is applied to a Record the
record's key is preserved.
Note that the key is read-only and should not be modified, as this can lead to corrupt partitioning.
If a record's key and value should be modified KeyValueMapper can be used.- See Also:
-
Method Summary
-
Method Details
-
apply
-