public static class RangeEndpointCalculator.DateRangeEndpointCalculator extends RangeEndpointCalculator<Date>
RangeEndpointCalculator.DateRangeEndpointCalculator, RangeEndpointCalculator.DoubleRangeEndpointCalculator, RangeEndpointCalculator.FacetRange, RangeEndpointCalculator.FloatRangeEndpointCalculator, RangeEndpointCalculator.IntegerRangeEndpointCalculator, RangeEndpointCalculator.LongRangeEndpointCalculator
field, 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)
RangeEndpointCalculator
formatValue
in class RangeEndpointCalculator<Date>
protected Date parseVal(String rawval)
RangeEndpointCalculator
parseVal
in class RangeEndpointCalculator<Date>
protected Object parseGap(String rawval)
RangeEndpointCalculator
parseGap
in class RangeEndpointCalculator<Date>
public Date parseAndAddGap(Date value, String gap) throws ParseException
RangeEndpointCalculator
parseAndAddGap
in class RangeEndpointCalculator<Date>
ParseException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.