Package org.apache.solr.analytics.value
Interface DoubleValue
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
,DoubleValueStream
- All Known Subinterfaces:
DoubleValue.CastingDoubleValue
,FloatValue.CastingFloatValue
,IntValue.CastingIntValue
,LongValue.CastingLongValue
- All Known Implementing Classes:
ConstantDoubleValue
,ConstantFloatValue
,ConstantIntValue
,ConstantLongValue
,CountFunction
,DocCountFunction
,DoubleField
,DoubleValue.AbstractDoubleValue
,FloatField
,FloatValue.AbstractFloatValue
,IntField
,IntValue.AbstractIntValue
,LongField
,LongValue.AbstractLongValue
,MeanFunction
,MissingFunction
,SumFunction
,UniqueFunction
public interface DoubleValue extends DoubleValueStream, AnalyticsValue
A single-valued analytics value that can be represented as a date.The back-end production of the value can change inbetween calls to
getDouble()
andAnalyticsValue.exists()
, resulting in different values on each call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DoubleValue.AbstractDoubleValue
An abstract base forDoubleValue.CastingDoubleValue
that automatically casts to all types ifgetDouble()
andAnalyticsValue.exists()
are implemented.static interface
DoubleValue.CastingDoubleValue
An interface that represents all of the types aDoubleValue
should be able to cast to.-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValue
AnalyticsValue.AbstractAnalyticsValue
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.DoubleValueStream
DoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getDouble()
Get the double representation of the current value.-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValue
exists, getObject
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, getExpressionStr, getExpressionType, getName, streamObjects
-
Methods inherited from interface org.apache.solr.analytics.value.DoubleValueStream
streamDoubles
-
-
-
-
Method Detail
-
getDouble
double getDouble()
Get the double representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()
afterwards returnsTRUE
.- Returns:
- the current value
-
-