public class RangeFacetMap extends JsonFacetMap<RangeFacetMap>
JsonQueryRequest.withFacet(String, Map)| Modifier and Type | Class and Description |
|---|---|
static class |
RangeFacetMap.OtherBuckets |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
RangeFacetMap(String field,
Date start,
Date end,
String gap)
Creates a "range" facet representation for a date field
|
RangeFacetMap(String field,
double start,
double end,
double gap) |
RangeFacetMap(String field,
long start,
long end,
long gap) |
| Modifier and Type | Method and Description |
|---|---|
RangeFacetMap |
getThis() |
RangeFacetMap |
setHardEnd(boolean hardEnd)
Indicates whether the facet's last bucket should stop exactly at
end, or be extended to be gap 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 least
minOccurrences
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 for
start and end
See RangeFacetMap.OtherBuckets for possible options. |
withDomain, withStatSubFacet, withSubFacetclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic RangeFacetMap(String field, long start, long end, long gap)
public RangeFacetMap(String field, double start, double end, double gap)
public RangeFacetMap getThis()
getThis in class JsonFacetMap<RangeFacetMap>public RangeFacetMap setHardEnd(boolean hardEnd)
end, or be extended to be gap wide
Defaults to false if not specified.hardEnd - true if the final bucket should be truncated at end; false otherwisepublic RangeFacetMap setOtherBuckets(RangeFacetMap.OtherBuckets bucketSpecifier)
start and end
See RangeFacetMap.OtherBuckets for possible options.public RangeFacetMap setMinCount(int minOccurrences)
minOccurrences
Defaults to '0' if not specified.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.