Package org.apache.solr.analytics.value
Interface IntValue
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
,IntValueStream
- All Known Subinterfaces:
IntValue.CastingIntValue
- All Known Implementing Classes:
ConstantIntValue
,IntField
,IntValue.AbstractIntValue
public interface IntValue extends IntValueStream, AnalyticsValue
A single-valued analytics value that can be represented as an int.The back-end production of the value can change inbetween calls to
getInt()
andAnalyticsValue.exists()
, resulting in different values on each call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IntValue.AbstractIntValue
An abstract base forIntValue.CastingIntValue
that automatically casts to all types ifgetInt()
andAnalyticsValue.exists()
are implemented.static interface
IntValue.CastingIntValue
An interface that represents all of the types aIntValue
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.IntValueStream
IntValueStream.AbstractIntValueStream, IntValueStream.CastingIntValueStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getInt()
Get the int 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.IntValueStream
streamInts
-
-
-
-
Method Detail
-
getInt
int getInt()
Get the int representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()
afterwards returnsTRUE
.- Returns:
- the current value
-
-