public static class RangeEndpointCalculator.DateRangeEndpointCalculator extends RangeEndpointCalculator<Date>
RangeEndpointCalculator.DateRangeEndpointCalculator, RangeEndpointCalculator.DoubleRangeEndpointCalculator, RangeEndpointCalculator.FacetRange, RangeEndpointCalculator.FloatRangeEndpointCalculator, RangeEndpointCalculator.IntegerRangeEndpointCalculator, RangeEndpointCalculator.LongRangeEndpointCalculatorfield, request| Constructor and Description |
|---|
DateRangeEndpointCalculator(RangeFacetRequest request,
Date now) |
| Modifier and Type | Method and Description |
|---|---|
String |
formatValue(Date val)
Formats a Range endpoint for use as a range label name in the response.
|
Date |
parseAndAddGap(Date value,
String gap)
Adds the String gap param to a low Range endpoint value to determine
the corrisponding high Range endpoint value.
|
protected Object |
parseGap(String rawval)
Parses a String param into a value that represents the gap and
can be included in the response.
|
protected Date |
parseVal(String rawval)
Parses a String param into an Range endpoint.
|
public DateRangeEndpointCalculator(RangeFacetRequest request, Date now)
public String formatValue(Date val)
RangeEndpointCalculatorformatValue in class RangeEndpointCalculator<Date>protected Date parseVal(String rawval)
RangeEndpointCalculatorparseVal in class RangeEndpointCalculator<Date>protected Object parseGap(String rawval)
RangeEndpointCalculatorparseGap in class RangeEndpointCalculator<Date>public Date parseAndAddGap(Date value, String gap) throws ParseException
RangeEndpointCalculatorparseAndAddGap in class RangeEndpointCalculator<Date>ParseExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.