Class RangeFacetMap
java.lang.Object
java.util.AbstractMap<String,Object>
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>
Represents a "range" facet in a JSON request query.
Ready for use with JsonQueryRequest.withFacet(String, Map)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionRangeFacetMap(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
Modifier and TypeMethodDescriptiongetThis()setHardEnd(boolean hardEnd) Indicates whether the facet's last bucket should stop exactly atend, or be extended to begapwidesetMinCount(int minOccurrences) Indicates that buckets should be returned only if they have a count of at leastminOccurrencessetOtherBuckets(RangeFacetMap.OtherBuckets bucketSpecifier) Indicates that an additional range bucket(s) should be computed and added to those computed forstartandendMethods inherited from class org.apache.solr.client.solrj.request.json.JsonFacetMap
withDomain, withStatSubFacet, withSubFacetMethods 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
RangeFacetMap
-
RangeFacetMap
-
RangeFacetMap
Creates a "range" facet representation for a date field- Parameters:
gap- a DateMathParser compatible time/interval String. (e.g. "+1MONTH")
-
-
Method Details
-
getThis
- Specified by:
getThisin classJsonFacetMap<RangeFacetMap>
-
setHardEnd
Indicates whether the facet's last bucket should stop exactly atend, or be extended to begapwideDefaults to false if not specified.
- Parameters:
hardEnd- true if the final bucket should be truncated atend; false otherwise
-
setOtherBuckets
Indicates that an additional range bucket(s) should be computed and added to those computed forstartandendSee
RangeFacetMap.OtherBucketsfor possible options. -
setMinCount
Indicates that buckets should be returned only if they have a count of at leastminOccurrencesDefaults to '0' if not specified.
-