@PSOperatorWrapper public class Groupers extends java.lang.Object
Constructor and Description |
---|
Groupers() |
Modifier and Type | Method and Description |
---|---|
static PStreamTransformation |
groupBy(java.lang.String groupField)
Group the items according to a field.
|
static PStreamTransformation |
localGroupBy(java.lang.String groupField)
Group the **contiguous** items according to a field.
|
static PStreamTransformation |
unGroup(java.lang.String unGroupField,
java.lang.String newField)
Un-group a list field in each item to multiple items.
|
public static PStreamTransformation groupBy(java.lang.String groupField)
groupField
- the field used to group the items in current stream.public static PStreamTransformation localGroupBy(java.lang.String groupField)
groupField
- the field used to group the items in current stream.public static PStreamTransformation unGroup(java.lang.String unGroupField, java.lang.String newField)
unGroupField
- the field to un-group, whose value should be a listnewField
- the new field name in the new stream