public abstract static class DoubleValue.AbstractDoubleValue extends Object implements DoubleValue.CastingDoubleValue
DoubleValue.CastingDoubleValue
that automatically casts to all types if DoubleValue.getDouble()
and AnalyticsValue.exists()
are implemented.DoubleValue.AbstractDoubleValue, DoubleValue.CastingDoubleValue
DoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStream
StringValue.AbstractStringValue, StringValue.CastingStringValue
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
AnalyticsValue.AbstractAnalyticsValue
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
Constructor and Description |
---|
AbstractDoubleValue() |
Modifier and Type | Method and Description |
---|---|
AnalyticsValue |
convertToConstant()
Converts this value to a
ConstantValue if it's expression type is AnalyticsValueStream.ExpressionType.CONST . |
Object |
getObject()
Get the object representation of the current value.
|
ExpressionComparator<Double> |
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 |
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, wait
getDouble
exists
createExpressionString, determineMappingPhase, getExpressionStr, getExpressionType, getName
public String getString()
StringValue
NOTE: The value returned is not valid unless calling AnalyticsValue.exists()
afterwards returns TRUE
.
getString
in interface StringValue
public Object getObject()
AnalyticsValue
getObject
in interface AnalyticsValue
public void streamDoubles(DoubleConsumer cons)
DoubleValueStream
streamDoubles
in interface DoubleValueStream
cons
- The consumer to accept the valuespublic void streamStrings(Consumer<String> cons)
StringValueStream
streamStrings
in interface StringValueStream
cons
- The consumer to accept the valuespublic void streamObjects(Consumer<Object> cons)
AnalyticsValueStream
streamObjects
in interface AnalyticsValueStream
cons
- The consumer to accept the valuespublic AnalyticsValue convertToConstant()
AnalyticsValueStream
ConstantValue
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 AnalyticsValueStream
public ExpressionComparator<Double> getObjectComparator(String expression)
ComparableValue
getObjectComparator
in interface ComparableValue
expression
- the name of the expression in the results arrayCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.