public class UniqueFunction extends LongValue.AbstractLongValue implements ReductionFunction
AnalyticsValue.AbstractAnalyticsValueAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionTypeLongValue.AbstractLongValue, LongValue.CastingLongValueLongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStreamDoubleValue.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 | 
|---|
UniqueFunction(AnalyticsValueStream param,
              UniqueCollector<?> collector)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
exists()
Check whether the current value exists. 
 | 
String | 
getExpressionStr()
Get the expression string of the analytics value stream. 
 | 
AnalyticsValueStream.ExpressionType | 
getExpressionType()
Get the type of the expression that this class represents. 
 | 
long | 
getLong()
Get the long representation of the current value. 
 | 
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, getDouble, getObject, getObjectComparator, getString, streamDoubles, streamLongs, 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 UniqueFunction(AnalyticsValueStream param, UniqueCollector<?> collector)
public long getLong()
LongValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
public 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 getName()
AnalyticsValueStreamgetName in interface AnalyticsValueStreampublic String getExpressionStr()
AnalyticsValueStreamExpressionFactory.createExpression(String), the exact same expression should be created.getExpressionStr in interface AnalyticsValueStreampublic AnalyticsValueStream.ExpressionType getExpressionType()
AnalyticsValueStreamgetExpressionType in interface AnalyticsValueStreamCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.