Package org.apache.solr.analytics.value
Class AnalyticsValue.AbstractAnalyticsValue
- java.lang.Object
-
- org.apache.solr.analytics.value.AnalyticsValue.AbstractAnalyticsValue
-
- All Implemented Interfaces:
AnalyticsValue
,AnalyticsValueStream
- Enclosing interface:
- AnalyticsValue
public abstract static class AnalyticsValue.AbstractAnalyticsValue extends Object implements AnalyticsValue
An abstract base forAnalyticsValue
that automatically casts to castable types.
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractAnalyticsValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsValueStream
convertToConstant()
Converts this value to aConstantValue
if it's expression type isAnalyticsValueStream.ExpressionType.CONST
.void
streamObjects(Consumer<Object> cons)
Stream the object representations of all current values, if any exist.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValue
exists, getObject
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
getExpressionStr, getExpressionType, getName
-
-
-
-
Method Detail
-
streamObjects
public void streamObjects(Consumer<Object> cons)
Description copied from interface:AnalyticsValueStream
Stream the object representations of all current values, if any exist.- Specified by:
streamObjects
in interfaceAnalyticsValueStream
- Parameters:
cons
- The consumer to accept the values
-
convertToConstant
public AnalyticsValueStream convertToConstant()
Description copied from interface:AnalyticsValueStream
Converts this value to aConstantValue
if it's expression type isAnalyticsValueStream.ExpressionType.CONST
.If the value is reduced then no conversion will occur and the value itself will be returned.
- Specified by:
convertToConstant
in interfaceAnalyticsValueStream
- Returns:
- a constant representation of this value
-
-