public abstract static class LongValue.AbstractLongValue extends Object implements LongValue.CastingLongValue
LongValue.CastingLongValue that automatically casts to all types if LongValue.getLong() and AnalyticsValue.exists() are implemented.LongValue.AbstractLongValue, LongValue.CastingLongValueLongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStreamDoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValueDoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStreamStringValue.AbstractStringValue, StringValue.CastingStringValueStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStreamAnalyticsValue.AbstractAnalyticsValueAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType| Constructor and Description | 
|---|
| AbstractLongValue() | 
| Modifier and Type | Method and Description | 
|---|---|
| AnalyticsValue | convertToConstant()Converts this value to a  ConstantValueif it's expression type isAnalyticsValueStream.ExpressionType.CONST. | 
| double | getDouble()Get the double representation of the current value. | 
| Object | getObject()Get the object representation of the current value. | 
| ExpressionComparator<Long> | getObjectComparator(String expression)Create an entry comparator used to sort the facet-value buckets of a facet. | 
| String | getString()Get the String representation of the current value. | 
| void | streamDoubles(DoubleConsumer cons)Stream the double representations of all current values, if any exist. | 
| void | streamLongs(LongConsumer cons)Stream the long representations of all current values, if any exist. | 
| void | streamObjects(Consumer<Object> cons)Stream the object representations of all current values, if any exist. | 
| void | streamStrings(Consumer<String> cons)Stream the String representations of all current values, if any exist. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexistscreateExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getNamepublic double getDouble()
DoubleValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getDouble in interface DoubleValuepublic String getString()
StringValue
 NOTE: The value returned is not valid unless calling AnalyticsValue.exists() afterwards returns TRUE.
getString in interface StringValuepublic Object getObject()
AnalyticsValuegetObject in interface AnalyticsValuepublic void streamLongs(LongConsumer cons)
LongValueStreamstreamLongs in interface LongValueStreamcons - The consumer to accept the valuespublic void streamDoubles(DoubleConsumer cons)
DoubleValueStreamstreamDoubles in interface DoubleValueStreamcons - The consumer to accept the valuespublic void streamStrings(Consumer<String> cons)
StringValueStreamstreamStrings in interface StringValueStreamcons - The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStreamstreamObjects in interface AnalyticsValueStreamcons - The consumer to accept the valuespublic AnalyticsValue convertToConstant()
AnalyticsValueStreamConstantValue if it's expression type is AnalyticsValueStream.ExpressionType.CONST.
 
 If the value is reduced then no conversion will occur and the value itself will be returned.convertToConstant in interface AnalyticsValueStreampublic ExpressionComparator<Long> getObjectComparator(String expression)
ComparableValuegetObjectComparator in interface ComparableValueexpression - the name of the expression in the results arrayCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.