Package org.apache.solr.analytics.value
Interface LongValue
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
,LongValueStream
- All Known Subinterfaces:
DateValue
,DateValue.CastingDateValue
,IntValue.CastingIntValue
,LongValue.CastingLongValue
- All Known Implementing Classes:
ConstantDateValue
,ConstantIntValue
,ConstantLongValue
,CountFunction
,DateField
,DateValue.AbstractDateValue
,DocCountFunction
,IntField
,IntValue.AbstractIntValue
,LongField
,LongValue.AbstractLongValue
,MissingFunction
,UniqueFunction
public interface LongValue extends LongValueStream, AnalyticsValue
A single-valued analytics value that can be represented as a long.The back-end production of the value can change inbetween calls to
getLong()
andAnalyticsValue.exists()
, resulting in different values on each call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LongValue.AbstractLongValue
An abstract base forLongValue.CastingLongValue
that automatically casts to all types ifgetLong()
andAnalyticsValue.exists()
are implemented.static interface
LongValue.CastingLongValue
An interface that represents all of the types aLongValue
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.LongValueStream
LongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getLong()
Get the long 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.LongValueStream
streamLongs
-
-
-
-
Method Detail
-
getLong
long getLong()
Get the long representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()
afterwards returnsTRUE
.- Returns:
- the current value
-
-