class DateStatsValues extends AbstractStatsValues<java.util.Date>
| Modifier and Type | Field and Description |
|---|---|
private static DateField |
DATE_FIELD |
private long |
sum |
| Constructor and Description |
|---|
DateStatsValues(FieldType fieldType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTypeSpecificStats(NamedList<java.lang.Object> res)
Adds sum and mean statistics to the given NamedList
|
protected java.util.Date |
toTypedValue(java.lang.String value)
Converts the String value to a value associated with the specific StatsValues implementation
|
protected void |
updateMinMax(java.util.Date min,
java.util.Date max)
Updates the minimum and maximum statistics based on the given values
|
void |
updateTypeSpecificStats(java.util.Date value)
Updates the type specific statistics based on the given value
|
void |
updateTypeSpecificStats(java.util.Date value,
int count)
Updates the type specific statistics based on the given value
|
protected void |
updateTypeSpecificStats(NamedList stv)
Updates the type specific statistics based on the values in the given list
|
accumulate, accumulate, accumulate, addFacet, addMissing, getStatsValues, missingprivate static final DateField DATE_FIELD
private long sum
public DateStatsValues(FieldType fieldType)
protected void updateTypeSpecificStats(NamedList stv)
updateTypeSpecificStats in class AbstractStatsValues<java.util.Date>stv - List containing values the current statistics should be updated againstpublic void updateTypeSpecificStats(java.util.Date value)
updateTypeSpecificStats in class AbstractStatsValues<java.util.Date>value - Value the statistics should be updated againstpublic void updateTypeSpecificStats(java.util.Date value,
int count)
updateTypeSpecificStats in class AbstractStatsValues<java.util.Date>value - Value the statistics should be updated againstcount - Number of times the value is being accumulatedprotected void updateMinMax(java.util.Date min,
java.util.Date max)
updateMinMax in class AbstractStatsValues<java.util.Date>min - Value that the current minimum should be updated againstmax - Value that the current maximum should be updated againstprotected java.util.Date toTypedValue(java.lang.String value)
toTypedValue in class AbstractStatsValues<java.util.Date>value - String value to convertprotected void addTypeSpecificStats(NamedList<java.lang.Object> res)
addTypeSpecificStats in class AbstractStatsValues<java.util.Date>res - NamedList to add the type specific statistics too