@PSOperatorWrapper public class ListOperators extends java.lang.Object
| Constructor and Description |
|---|
ListOperators() |
| Modifier and Type | Method and Description |
|---|---|
static Function<Item,java.lang.Boolean> |
contains(java.lang.String listField,
java.lang.Object value)
Check whether the list specified by a field contains a given value.
|
static Function<Item,java.lang.Integer> |
count(java.lang.String listField)
Count the number of elements in the list specified by a field.
|
static <TValue> Function<Item,java.lang.Boolean> |
intersects(java.lang.String listField,
TValue[] listToCompare)
Check whether the list specified by a field intersects with a given list.
|
static Function<Item,java.lang.Number> |
max(java.lang.String numListField)
Get the max value of a field in the stream.
|
static Function<Item,java.lang.Double> |
mean(java.lang.String numListField)
Calculate the average of the numbers specified by a field.
|
static Function<Item,java.lang.Number> |
median(java.lang.String numListField)
Get the median value of a field in the stream.
|
static Function<Item,java.lang.Number> |
min(java.lang.String numListField)
Get the min value of a field in the stream.
|
static Function<Item,java.lang.Number> |
mode(java.lang.String numListField)
Get the mode value of a field in the stream.
|
static Function<Item,java.lang.Double> |
range(java.lang.String numListField)
Calculate the range of the numbers specified by a field.
|
static Function<Item,java.lang.Double> |
rms(java.lang.String numListField)
Calculate the RMS (root mean square) of the numbers specified by a field.
|
static Function<Item,java.lang.Double> |
sum(java.lang.String numListField)
Calculate the sum of the numbers specified by a field.
|
static Function<Item,java.lang.Double> |
variance(java.lang.String numListField)
Calculate the variance of the numbers specified by a field.
|
public static Function<Item,java.lang.Boolean> contains(java.lang.String listField, java.lang.Object value)
listField - the name of the list fieldvalue - the value to check if is in the listpublic static <TValue> Function<Item,java.lang.Boolean> intersects(java.lang.String listField, TValue[] listToCompare)
listField - the name of the list fieldlistToCompare - the list to comparepublic static Function<Item,java.lang.Integer> count(java.lang.String listField)
listField - the name of the field to countpublic static Function<Item,java.lang.Double> range(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Double> sum(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Double> mean(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Double> rms(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Double> variance(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Number> max(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Number> min(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Number> median(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.public static Function<Item,java.lang.Number> mode(java.lang.String numListField)
numListField - the name of the field, the field value must be a list of numbers.