Package org.apache.solr.analytics.value
Interface DateValue
-
- All Superinterfaces:
AnalyticsValue
,AnalyticsValueStream
,DateValueStream
,LongValue
,LongValueStream
- All Known Subinterfaces:
DateValue.CastingDateValue
- All Known Implementing Classes:
ConstantDateValue
,DateField
,DateValue.AbstractDateValue
public interface DateValue extends DateValueStream, LongValue
A single-valued analytics value that can be represented as a date.The back-end production of the value can change inbetween calls to
getDate()
andAnalyticsValue.exists()
, resulting in different values on each call.NOTE: Most date expressions work with the
long
representation of the date, so that less objects need to be created during execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DateValue.AbstractDateValue
An abstract base forDateValue.CastingDateValue
that automatically casts to all types ifLongValue.getLong()
andAnalyticsValue.exists()
are implemented.static interface
DateValue.CastingDateValue
An interface that represents all of the types aDateValue
should be able to cast to.-
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
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.DateValueStream
DateValueStream.AbstractDateValueStream, DateValueStream.CastingDateValueStream
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValue
LongValue.AbstractLongValue, LongValue.CastingLongValue
-
Nested classes/interfaces inherited from interface org.apache.solr.analytics.value.LongValueStream
LongValueStream.AbstractLongValueStream, LongValueStream.CastingLongValueStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Date
getDate()
Get the date representation of the current value.-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValue
exists, getObject
-
Methods inherited from interface org.apache.solr.analytics.value.AnalyticsValueStream
convertToConstant, getExpressionStr, getExpressionType, getName, streamObjects
-
Methods inherited from interface org.apache.solr.analytics.value.DateValueStream
streamDates
-
Methods inherited from interface org.apache.solr.analytics.value.LongValueStream
streamLongs
-
-
-
-
Method Detail
-
getDate
Date getDate()
Get the date representation of the current value.NOTE: The value returned is not valid unless calling
AnalyticsValue.exists()
afterwards returnsTRUE
.- Returns:
- the current value
-
-