Class RangeFacetMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.apache.solr.client.solrj.request.json.JsonFacetMap<RangeFacetMap>
-
- org.apache.solr.client.solrj.request.json.RangeFacetMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class RangeFacetMap extends JsonFacetMap<RangeFacetMap>
Represents a "range" facet in a JSON request query. Ready for use withJsonQueryRequest.withFacet(String, Map)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RangeFacetMap.OtherBuckets
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description RangeFacetMap(String field, double start, double end, double gap)
RangeFacetMap(String field, long start, long end, long gap)
RangeFacetMap(String field, Date start, Date end, String gap)
Creates a "range" facet representation for a date field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeFacetMap
getThis()
RangeFacetMap
setHardEnd(boolean hardEnd)
Indicates whether the facet's last bucket should stop exactly atend
, or be extended to begap
wide Defaults to false if not specified.RangeFacetMap
setMinCount(int minOccurrences)
Indicates that buckets should be returned only if they have a count of at leastminOccurrences
Defaults to '0' if not specified.RangeFacetMap
setOtherBuckets(RangeFacetMap.OtherBuckets bucketSpecifier)
Indicates that an additional range bucket(s) should be computed and added to those computed forstart
andend
SeeRangeFacetMap.OtherBuckets
for possible options.-
Methods inherited from class org.apache.solr.client.solrj.request.json.JsonFacetMap
withDomain, withStatSubFacet, withSubFacet
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
getThis
public RangeFacetMap getThis()
- Specified by:
getThis
in classJsonFacetMap<RangeFacetMap>
-
setHardEnd
public RangeFacetMap setHardEnd(boolean hardEnd)
Indicates whether the facet's last bucket should stop exactly atend
, or be extended to begap
wide Defaults to false if not specified.- Parameters:
hardEnd
- true if the final bucket should be truncated atend
; false otherwise
-
setOtherBuckets
public RangeFacetMap setOtherBuckets(RangeFacetMap.OtherBuckets bucketSpecifier)
Indicates that an additional range bucket(s) should be computed and added to those computed forstart
andend
SeeRangeFacetMap.OtherBuckets
for possible options.
-
setMinCount
public RangeFacetMap setMinCount(int minOccurrences)
Indicates that buckets should be returned only if they have a count of at leastminOccurrences
Defaults to '0' if not specified.
-
-