public class RangeFacetRequest extends FacetRequest implements Iterable<FacetRange>
NOTE: for all ranges, the min value is inclusive and the max value is exclusive.
FacetRequest.SortByDEFAULT_MAX_MEMORY_USAGE, DEFAULT_PRIMARY_SORT, DEFAULT_SAMPLE_MODE, DEFAULT_SECONDARY_SORT, DEFAULT_SORT_BY| Constructor and Description |
|---|
RangeFacetRequest() |
RangeFacetRequest(FieldExpression field) |
RangeFacetRequest(String field)
Construct a new RangeFacetRequest that contains 0 ranges.
|
RangeFacetRequest(String field,
double min,
double max)
Construct a new RangeFacetRequest with fixed size ranges from
min to max. |
RangeFacetRequest(String field,
double min,
double max,
int buckets)
Construct a new RangeFacetRequest with fixed size ranges from
min to max. |
RangeFacetRequest(String field,
long min,
long max)
Construct a new RangeFacetRequest with fixed size ranges from
min to max. |
RangeFacetRequest(String field,
long min,
long max,
int buckets)
Construct a new RangeFacetRequest with fixed size ranges from
min to max. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double min,
double max)
Add a double precision floating point range to this request.
|
void |
add(FacetRange range)
Add a range to this request.
|
void |
add(float min,
float max)
Add a floating point range to this request.
|
void |
add(int min,
int max)
Add an integer range to this request.
|
void |
add(long min,
long max)
Add a long integer range to this request.
|
void |
add(String label,
BigDecimal min,
BigDecimal max)
Add an integer range to this request.
|
void |
add(String label,
Date min,
Date max)
Add a Date range to this request.
|
void |
add(String label,
double min,
double max)
Add a double precision floating point range to this request.
|
void |
add(String label,
float min,
float max)
Add a floating point range to this request.
|
void |
add(String label,
int min,
int max)
Add an integer range to this request.
|
void |
add(String label,
long min,
long max)
Add a long integer range to this request.
|
protected int |
addParameters(StringBuilder buffer,
int index) |
boolean |
equals(Object other) |
ArrayList<FacetRange> |
getRanges()
Get the facet ranges.
|
int |
hashCode() |
boolean |
isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest. |
Iterator<FacetRange> |
iterator()
Get an iterator over all ranges.
|
void |
setFacetFinder(boolean value)
Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.
|
addName, addParameter, clone, getBucketComparator, getDistributedMaxBuckets, getDistributedMinBucketCount, getField, getFieldExpression, getMaxBuckets, getMaxMemoryUsage, getMinBucketCount, getName, getPrimarySortOrder, getRawDistributedMaxBuckets, getRawDistributedMinBucketCount, getRawMaxBuckets, getRawMinBucketCount, getSecondarySortOrder, getShallowMode, getSortBy, isCalculateStatistics, isFacetTokens, setCalculateStatistics, setDefaults, setDistributedMaxBuckets, setDistributedMaxBuckets, setDistributedMinBucketCount, setDistributedMinBucketCount, setFacetTokens, setField, setFieldExpression, setMaxBuckets, setMaxBuckets, setMaxMemoryUsage, setMinBucketCount, setMinBucketCount, setName, setPrimarySortOrder, setSecondarySortOrder, setShallowMode, setSortOrder, setSortOrder, setSortOrder, toString, valueOffinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic RangeFacetRequest()
public RangeFacetRequest(String field)
public RangeFacetRequest(FieldExpression field)
public RangeFacetRequest(String field, long min, long max)
min to max.public RangeFacetRequest(String field, double min, double max)
min to max.public RangeFacetRequest(String field, long min, long max, int buckets)
min to max.public RangeFacetRequest(String field, double min, double max, int buckets)
min to max.public final boolean isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest.
This will replace a FacetRequest for a numeric field with a RangeFacetRequest when facet finder runs.
isFacetFinder in class FacetRequestpublic final void setFacetFinder(boolean value)
setFacetFinder in class FacetRequestpublic ArrayList<FacetRange> getRanges()
public Iterator<FacetRange> iterator()
iterator in interface Iterable<FacetRange>public void add(FacetRange range)
public void add(int min,
int max)
public void add(String label, int min, int max)
public void add(String label, BigDecimal min, BigDecimal max)
public void add(long min,
long max)
public void add(String label, long min, long max)
public void add(float min,
float max)
public void add(String label, float min, float max)
public void add(double min,
double max)
public void add(String label, double min, double max)
protected int addParameters(StringBuilder buffer, int index)
addParameters in class FacetRequestpublic int hashCode()
hashCode in class FacetRequestpublic boolean equals(Object other)
equals in class FacetRequestCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.