Package org.apache.solr.analytics.value
Class FloatValueStream.AbstractFloatValueStream
- java.lang.Object
-
- org.apache.solr.analytics.value.FloatValueStream.AbstractFloatValueStream
-
- All Implemented Interfaces:
AnalyticsValueStream
,DoubleValueStream
,FloatValueStream
,FloatValueStream.CastingFloatValueStream
,StringValueStream
- Enclosing interface:
- FloatValueStream
public abstract static class FloatValueStream.AbstractFloatValueStream extends Object implements FloatValueStream.CastingFloatValueStream
An abstract base forFloatValueStream.CastingFloatValueStream
that automatically casts to all types ifFloatValueStream.streamFloats(org.apache.solr.analytics.util.function.FloatConsumer)
is implemented.
-
-
Nested Class Summary
-
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.DoubleValueStream
DoubleValueStream.AbstractDoubleValueStream, DoubleValueStream.CastingDoubleValueStream
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.FloatValueStream
FloatValueStream.AbstractFloatValueStream, FloatValueStream.CastingFloatValueStream
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValueStream
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
-
-
Constructor Summary
Constructors Constructor Description AbstractFloatValueStream()
-
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
streamDoubles(DoubleConsumer cons)
Stream the double representations of all current values, if any exist.void
streamObjects(Consumer<Object> cons)
Stream the object representations of all current values, if any exist.void
streamStrings(Consumer<String> cons)
Stream the String 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.AnalyticsValueStream
getExpressionStr, getExpressionType, getName
-
Methods inherited from interface org.apache.solr.analytics.value.FloatValueStream
streamFloats
-
-
-
-
Method Detail
-
streamDoubles
public void streamDoubles(DoubleConsumer cons)
Description copied from interface:DoubleValueStream
Stream the double representations of all current values, if any exist.- Specified by:
streamDoubles
in interfaceDoubleValueStream
- Parameters:
cons
- The consumer to accept the values
-
streamStrings
public void streamStrings(Consumer<String> cons)
Description copied from interface:StringValueStream
Stream the String representations of all current values, if any exist.- Specified by:
streamStrings
in interfaceStringValueStream
- Parameters:
cons
- The consumer to accept the values
-
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
-
-