V- value type
VR- mapped value type
@InterfaceStability.Unstable public interface ValueMapper<V,VR>
ValueMapperinterface for mapping a value to a new value of arbitrary type. This is a stateless record-by-record operation, i.e,
apply(Object)is invoked individually for each record of a stream (cf.
ValueTransformerfor stateful value transformation). If
ValueMapperis applied to a
key-value pairrecord the record's key is preserved. If a record's key and value should be modified
KeyValueMappercan be used.