public class ComparisonFunction extends Object
Uses:
AnalyticsValue
s are passed in, a BooleanValue
representing the comparison of the two values for each document is returned.
AnalyticsValue
and a comparable AnalyticsValueStream
are passed in,
a BooleanValueStream
representing the comparison of the Value and each of the values of the ValueStream for the document is returned.
Modifier and Type | Class and Description |
---|---|
static interface |
ComparisonFunction.CompResultFunction |
static class |
ComparisonFunction.GTEFunction
A comparison function that tests whether the first parameter is greater than or equal to the second parameter
|
static class |
ComparisonFunction.GTFunction
A comparison function that tests whether the first parameter is greater than the second parameter
|
static class |
ComparisonFunction.LTEFunction
A comparison function that tests whether the first parameter is less than or equal to the second parameter
|
static class |
ComparisonFunction.LTFunction
A comparison function that tests whether the first parameter is less than the second parameter
|
Constructor and Description |
---|
ComparisonFunction() |
Modifier and Type | Method and Description |
---|---|
static BooleanValueStream |
createComparisonFunction(String name,
ComparisonFunction.CompResultFunction comp,
AnalyticsValueStream... params)
Create a comparison mapping function, comparing two analytics value (streams) of the same type.
|
public static BooleanValueStream createComparisonFunction(String name, ComparisonFunction.CompResultFunction comp, AnalyticsValueStream... params)
name
- name of the functioncomp
- function to find the result of a comparisonparams
- the parameters to compareCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.