Package org.apache.solr.analytics.value
Interface BooleanValue
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
,BooleanValueStream
- All Known Subinterfaces:
BooleanValue.CastingBooleanValue
- All Known Implementing Classes:
BooleanField
,BooleanValue.AbstractBooleanValue
,ConstantBooleanValue
public interface BooleanValue extends BooleanValueStream, AnalyticsValue
A single-valued analytics value that can be represented as a boolean.The back-end production of the value can change inbetween calls to
getBoolean()
andAnalyticsValue.exists()
, resulting in different values on each call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BooleanValue.AbstractBooleanValue
An abstract base forBooleanValue.CastingBooleanValue
that automatically casts to all types ifgetBoolean()
andAnalyticsValue.exists()
are implemented.static interface
BooleanValue.CastingBooleanValue
An interface that represents all of the types aBooleanValue
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.BooleanValueStream
BooleanValueStream.AbstractBooleanValueStream, BooleanValueStream.CastingBooleanValueStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getBoolean()
Get the boolean 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.BooleanValueStream
streamBooleans
-
-
-
-
Method Detail
-
getBoolean
boolean getBoolean()
Get the boolean representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()
afterwards returnsTRUE
.- Returns:
- the current value
-
-