public class RangeFacetRequest extends FacetComponent.FacetBase
Modifier and Type | Class and Description |
---|---|
static class |
RangeFacetRequest.FacetRange
Represents a single facet range (or gap) for which the count is to be calculated
|
Modifier and Type | Field and Description |
---|---|
protected String |
end |
protected Object |
endObj
The computed end value of this range taking into account facet.range.hardend
|
protected List<RangeFacetRequest.FacetRange> |
facetRanges |
protected String |
gap |
protected Object |
gapObj
The computed gap between each range
|
protected boolean |
groupFacet |
protected boolean |
hardEnd |
protected EnumSet<FacetParams.FacetRangeInclude> |
include |
protected FacetParams.FacetRangeMethod |
method |
protected int |
minCount |
protected EnumSet<FacetParams.FacetRangeOther> |
others |
protected SchemaField |
schemaField |
protected String |
start |
protected Object |
startObj
The computed start value of this range
|
Constructor and Description |
---|
RangeFacetRequest(ResponseBuilder rb,
String f) |
Modifier and Type | Method and Description |
---|---|
String |
getEnd()
The end of this facet.range as specified by
FacetParams.FACET_RANGE_END parameter |
Object |
getEndObj()
The end of this facet.range as calculated using the value of facet.range.end
parameter and facet.range.hardend.
|
List<RangeFacetRequest.FacetRange> |
getFacetRanges() |
String |
getGap() |
Object |
getGapObj() |
EnumSet<FacetParams.FacetRangeInclude> |
getInclude() |
FacetParams.FacetRangeMethod |
getMethod() |
int |
getMinCount() |
EnumSet<FacetParams.FacetRangeOther> |
getOthers() |
SchemaField |
getSchemaField() |
String |
getStart() |
Object |
getStartObj() |
boolean |
isGroupFacet() |
boolean |
isHardEnd() |
getExcludeTags, getKey, getTags, getThreadCount, getType
protected final SchemaField schemaField
protected final String start
protected final String end
protected final String gap
protected final boolean hardEnd
protected final EnumSet<FacetParams.FacetRangeInclude> include
protected final EnumSet<FacetParams.FacetRangeOther> others
protected final FacetParams.FacetRangeMethod method
protected final int minCount
protected final boolean groupFacet
protected final List<RangeFacetRequest.FacetRange> facetRanges
protected final Object startObj
protected final Object endObj
protected final Object gapObj
public RangeFacetRequest(ResponseBuilder rb, String f)
public String getStart()
FacetParams.FACET_RANGE_START
parameterpublic String getEnd()
FacetParams.FACET_RANGE_END
parameter
Note that the actual computed end value can be different depending on the
FacetParams.FACET_RANGE_HARD_END
parameter. See endObj
public EnumSet<FacetParams.FacetRangeInclude> getInclude()
EnumSet
containing all the values specified via
FacetParams.FACET_RANGE_INCLUDE
parameter. Defaults to
FacetParams.FacetRangeInclude.LOWER
if no parameter
is supplied. Includes all values from FacetParams.FacetRangeInclude
enum
if FacetParams.FACET_RANGE_INCLUDE
includes
FacetParams.FacetRangeInclude.ALL
public String getGap()
FacetParams.FACET_RANGE_GAP
parameterpublic Object getGapObj()
public boolean isHardEnd()
FacetParams.FACET_RANGE_HARD_END
parameterpublic EnumSet<FacetParams.FacetRangeOther> getOthers()
EnumSet
of FacetParams.FacetRangeOther
values
specified by FacetParams.FACET_RANGE_OTHER
parameterpublic FacetParams.FacetRangeMethod getMethod()
FacetParams.FacetRangeMethod
to be used for computing
ranges determined either by the value of FacetParams.FACET_RANGE_METHOD
parameter
or other internal constraints.public int getMinCount()
FacetParams.FACET_MINCOUNT
public SchemaField getSchemaField()
SchemaField
instance representing the field on which ranges have to be calculatedpublic boolean isGroupFacet()
GroupParams.GROUP_FACET
parameterpublic List<RangeFacetRequest.FacetRange> getFacetRanges()
List
of RangeFacetRequest.FacetRange
objects
representing the ranges (gaps) for which range counts are to be calculated.public Object getStartObj()
public Object getEndObj()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.