Package org.apache.solr.analytics.value
Class IntValueStream.AbstractIntValueStream
- java.lang.Object
-
- org.apache.solr.analytics.value.IntValueStream.AbstractIntValueStream
-
- All Implemented Interfaces:
AnalyticsValueStream,DoubleValueStream,FloatValueStream,IntValueStream,IntValueStream.CastingIntValueStream,LongValueStream,StringValueStream
- Enclosing interface:
- IntValueStream
public abstract static class IntValueStream.AbstractIntValueStream extends Object implements IntValueStream.CastingIntValueStream
An abstract base forIntValueStream.CastingIntValueStreamthat automatically casts to all types ifIntValueStream.streamInts(java.util.function.IntConsumer)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.IntValueStream
IntValueStream.AbstractIntValueStream, IntValueStream.CastingIntValueStream
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValueStream
LongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStream
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValueStream
StringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
-
-
Constructor Summary
Constructors Constructor Description AbstractIntValueStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsValueStreamconvertToConstant()Converts this value to aConstantValueif it's expression type isAnalyticsValueStream.ExpressionType.CONST.voidstreamDoubles(DoubleConsumer cons)Stream the double representations of all current values, if any exist.voidstreamFloats(FloatConsumer cons)Stream the float representations of all current values, if any exist.voidstreamLongs(LongConsumer cons)Stream the long representations of all current values, if any exist.voidstreamObjects(Consumer<Object> cons)Stream the object representations of all current values, if any exist.voidstreamStrings(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.IntValueStream
streamInts
-
-
-
-
Method Detail
-
streamLongs
public void streamLongs(LongConsumer cons)
Description copied from interface:LongValueStreamStream the long representations of all current values, if any exist.- Specified by:
streamLongsin interfaceLongValueStream- Parameters:
cons- The consumer to accept the values
-
streamFloats
public void streamFloats(FloatConsumer cons)
Description copied from interface:FloatValueStreamStream the float representations of all current values, if any exist.- Specified by:
streamFloatsin interfaceFloatValueStream- Parameters:
cons- The consumer to accept the values
-
streamDoubles
public void streamDoubles(DoubleConsumer cons)
Description copied from interface:DoubleValueStreamStream the double representations of all current values, if any exist.- Specified by:
streamDoublesin interfaceDoubleValueStream- Parameters:
cons- The consumer to accept the values
-
streamStrings
public void streamStrings(Consumer<String> cons)
Description copied from interface:StringValueStreamStream the String representations of all current values, if any exist.- Specified by:
streamStringsin interfaceStringValueStream- Parameters:
cons- The consumer to accept the values
-
streamObjects
public void streamObjects(Consumer<Object> cons)
Description copied from interface:AnalyticsValueStreamStream the object representations of all current values, if any exist.- Specified by:
streamObjectsin interfaceAnalyticsValueStream- Parameters:
cons- The consumer to accept the values
-
convertToConstant
public AnalyticsValueStream convertToConstant()
Description copied from interface:AnalyticsValueStreamConverts this value to aConstantValueif 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:
convertToConstantin interfaceAnalyticsValueStream- Returns:
- a constant representation of this value
-
-