public class RangeFacetBucket extends FacetBucket
NOTE: A range bucket's primary sort value is the upper bounds of the range. The secondary sort value is the range's lower bounds.
count| Constructor and Description |
|---|
RangeFacetBucket(Date min,
Date max,
long count)
Constructor.
|
RangeFacetBucket(FacetRange range,
long count)
Constructor.
|
RangeFacetBucket(FacetRange range,
long count,
int ordinal)
Constructor.
|
RangeFacetBucket(Number min,
Number max,
long count)
Constructor.
|
RangeFacetBucket(String label,
Date min,
Date max,
long count)
Constructor.
|
RangeFacetBucket(String label,
Number min,
Number max,
long count)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareValue(FacetBucket other)
Compare the value of this bucket to
other bucket. |
boolean |
equals(Object other) |
String |
getDisplayValue()
Get a string value that is suitable as a display value for this bucket.
|
String |
getLabel()
Get the label for this bucket.
|
Object |
getMaxValue()
Get the maximum value for this range (exclusive).
|
Object |
getMinValue()
Get the minimum value for this range (inclusive).
|
int |
getOrdinal()
Get the ordinal or this bucket.
|
Query |
getQueryFilter(FacetResponse facet)
Get the
Query to use for drilling down on this bucket. |
FacetRange |
getRange()
Get the range for this bucket.
|
Comparable<?> |
getSortValue()
Get the value suitable for ordering/hashing buckets.
|
int |
hashCode() |
void |
setLabel(String value)
Set the label for this bucket.
|
void |
setOrdinal(int value)
Set the ordinal or this bucket.
|
void |
setRange(FacetRange value)
Set the range for this bucket.
|
String |
toString() |
clone, getCount, setCountpublic RangeFacetBucket(String label, Number min, Number max, long count)
public RangeFacetBucket(FacetRange range, long count)
public RangeFacetBucket(FacetRange range, long count, int ordinal)
public FacetRange getRange()
public void setRange(FacetRange value)
public String getLabel()
public void setLabel(String value)
public Object getMinValue()
public Object getMaxValue()
public int getOrdinal()
The ordinal value corresponds to the order this filter for this bucket
was added to the RangeFacetRequest.
public void setOrdinal(int value)
The ordinal value corresponds to the order this filter for this bucket
was added to the RangeFacetRequest.
public String getDisplayValue()
FacetBucketgetDisplayValue in class FacetBucketpublic Query getQueryFilter(FacetResponse facet)
Query to use for drilling down on this bucket.getQueryFilter in class FacetBucketpublic Comparable<?> getSortValue()
getSortValue in class FacetBucketpublic int compareValue(FacetBucket other)
other bucket.
NOTE: comparison ignores case in general.
compareValue in class FacetBucketpublic int hashCode()
hashCode in class FacetBucketpublic boolean equals(Object other)
equals in class FacetBucketCopyright © 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.