@PSOperatorWrapper public class Mappers extends java.lang.Object
Constructor and Description |
---|
Mappers() |
Modifier and Type | Method and Description |
---|---|
static PStreamTransformation |
inFixedInterval(long fixedInterval)
Make the items be sent in a fixed interval.
|
static PStreamTransformation |
mapEachItem(Function<Item,Item> perItemMapper)
Transform a multi-item stream by mapping each items with a item-to-item mapper.
|
public static PStreamTransformation mapEachItem(Function<Item,Item> perItemMapper)
perItemMapper
- the mapper function to map each item in the stream.public static PStreamTransformation inFixedInterval(long fixedInterval)
fixedInterval
- the fixed interval in milliseconds.