Package org.apache.solr.analytics.value
Class DateValueStream.AbstractDateValueStream
- java.lang.Object
- 
- org.apache.solr.analytics.value.DateValueStream.AbstractDateValueStream
 
- 
- All Implemented Interfaces:
- AnalyticsValueStream,- DateValueStream,- DateValueStream.CastingDateValueStream,- LongValueStream,- StringValueStream
 - Enclosing interface:
- DateValueStream
 
 public abstract static class DateValueStream.AbstractDateValueStream extends Object implements DateValueStream.CastingDateValueStream An abstract base forDateValueStream.CastingDateValueStreamthat automatically casts to all types ifLongValueStream.streamLongs(java.util.function.LongConsumer)is implemented.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.AnalyticsValueStreamAnalyticsValueStream.AbstractAnalyticsValueStream, AnalyticsValueStream.ExpressionType
 - 
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.DateValueStreamDateValueStream.AbstractDateValueStream, DateValueStream.CastingDateValueStream
 - 
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValueStreamLongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStream
 - 
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.StringValueStreamStringValueStream.AbstractStringValueStream, StringValueStream.CastingStringValueStream
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractDateValueStream()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsValueStreamconvertToConstant()Converts this value to aConstantValueif it's expression type isAnalyticsValueStream.ExpressionType.CONST.voidstreamDates(Consumer<Date> cons)Stream the date 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStreamgetExpressionStr, getExpressionType, getName
 - 
Methods inherited from interface org.apache.solr.analytics.value.LongValueStreamstreamLongs
 
- 
 
- 
- 
- 
Method Detail- 
streamDatespublic void streamDates(Consumer<Date> cons) Description copied from interface:DateValueStreamStream the date representations of all current values, if any exist.- Specified by:
- streamDatesin interface- DateValueStream
- Parameters:
- cons- The consumer to accept the values
 
 - 
streamStringspublic void streamStrings(Consumer<String> cons) Description copied from interface:StringValueStreamStream the String representations of all current values, if any exist.- Specified by:
- streamStringsin interface- StringValueStream
- Parameters:
- cons- The consumer to accept the values
 
 - 
streamObjectspublic void streamObjects(Consumer<Object> cons) Description copied from interface:AnalyticsValueStreamStream the object representations of all current values, if any exist.- Specified by:
- streamObjectsin interface- AnalyticsValueStream
- Parameters:
- cons- The consumer to accept the values
 
 - 
convertToConstantpublic 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 interface- AnalyticsValueStream
- Returns:
- a constant representation of this value
 
 
- 
 
-