@PSOperatorWrapper public class Reorders extends java.lang.Object
| Constructor and Description |
|---|
Reorders() |
| Modifier and Type | Method and Description |
|---|---|
static PStreamTransformation |
reverse()
Reverse the order of the items in stream.
|
static PStreamTransformation |
shuffle()
Shuffle the order of the items in stream.
|
static PStreamTransformation |
sortBy(java.lang.String fieldToSort)
Sort the items in stream by the value of a field.
|
public static PStreamTransformation sortBy(java.lang.String fieldToSort)
fieldToSort - the name of the field to reorder by.public static PStreamTransformation shuffle()
public static PStreamTransformation reverse()