public class SumFunction extends DoubleValue.AbstractDoubleValue implements ReductionFunction
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
SumFunction.SumData  | 
AnalyticsValue.AbstractAnalyticsValueAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionTypeDoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValueDoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStreamStringValue.AbstractStringValue, StringValue.CastingStringValueStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream| Modifier and Type | Field and Description | 
|---|---|
static ExpressionFactory.CreatorFunction | 
creatorFunction  | 
static String | 
name  | 
| Constructor and Description | 
|---|
SumFunction(DoubleValueStream param)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
exists()
Check whether the current value exists. 
 | 
double | 
getDouble()
Get the double representation of the current value. 
 | 
String | 
getExpressionStr()
Get the expression string of the analytics value stream. 
 | 
AnalyticsValueStream.ExpressionType | 
getExpressionType()
Get the type of the expression that this class represents. 
 | 
String | 
getName()
Get the name of function or value. 
 | 
void | 
synchronizeDataCollectors(UnaryOperator<ReductionDataCollector<?>> sync)
Syncs the data collectors with shared versions across the entire Analytics Request
 so that as little data as possible is sent across shards. 
 | 
convertToConstant, getObject, getObjectComparator, getString, streamDoubles, streamObjects, streamStringsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObjectconvertToConstant, createExpressionString, determineMappingPhase, streamObjectspublic static final String name
public static final ExpressionFactory.CreatorFunction creatorFunction
public SumFunction(DoubleValueStream param)
public double getDouble()
DoubleValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getDouble in interface DoubleValuepublic boolean exists()
AnalyticsValueget<Type>() method is called.exists in interface AnalyticsValuepublic void synchronizeDataCollectors(UnaryOperator<ReductionDataCollector<?>> sync)
ReductionFunctionsynchronizeDataCollectors in interface ReductionFunctionsync - a function that takes in a ReductionDataCollector and returns a shared versionpublic String getExpressionStr()
AnalyticsValueStreamExpressionFactory.createExpression(String), the exact same expression should be created.getExpressionStr in interface AnalyticsValueStreampublic String getName()
AnalyticsValueStreamgetName in interface AnalyticsValueStreampublic AnalyticsValueStream.ExpressionType getExpressionType()
AnalyticsValueStreamgetExpressionType in interface AnalyticsValueStreamCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.