Package org.apache.solr.analytics.value
Class AnalyticsValueStream.AbstractAnalyticsValueStream
- java.lang.Object
-
- org.apache.solr.analytics.value.AnalyticsValueStream.AbstractAnalyticsValueStream
-
- All Implemented Interfaces:
AnalyticsValueStream
- Direct Known Subclasses:
IfFunction
- Enclosing interface:
- AnalyticsValueStream
public abstract static class AnalyticsValueStream.AbstractAnalyticsValueStream extends Object implements AnalyticsValueStream
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
AnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
-
-
Constructor Summary
Constructors Constructor Description AbstractAnalyticsValueStream()
-
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
.-
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.AnalyticsValueStream
getExpressionStr, getExpressionType, getName, streamObjects
-
-
-
-
Method Detail
-
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
-
-