public class TermFacetBucket extends FacetBucket
count| Constructor and Description |
|---|
TermFacetBucket(Boolean value,
long count)
Constructor.
|
TermFacetBucket(Date value,
long count)
Constructor.
|
TermFacetBucket(Number value,
long count)
Constructor.
|
TermFacetBucket(Point value,
long count)
Constructor.
|
TermFacetBucket(String value,
long count)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Gets the value as a
boolean. |
int |
compareValue(FacetBucket other)
Compare the value of this bucket to
other bucket. |
Date |
dateValue()
Gets the value as a
Date. |
BigDecimal |
decimalValue()
Gets the value as a
BigDecimal. |
double |
doubleValue()
Gets the value as a
double. |
boolean |
equals(Object other) |
float |
floatValue()
Gets the value as a
float. |
String |
getDisplayValue()
Get a string value that is suitable as a display value for this bucket.
|
Query |
getQueryFilter(FacetResponse facet)
Get the
Query to use for drilling down on this bucket. |
Comparable<?> |
getSortValue()
Get the value suitable for ordering/hashing buckets.
|
Object |
getValue()
Get the field value.
|
int |
hashCode() |
int |
intValue()
Gets the value as an
int. |
long |
longValue()
Gets the value as a
long. |
Point |
pointValue()
Gets the value as a
Point. |
void |
setValue(Boolean value)
Set a
Boolean value. |
void |
setValue(Date value)
Set a
Date value. |
void |
setValue(Number value)
Set a
numeric value. |
void |
setValue(Point value)
Set a
Point value. |
void |
setValue(String value)
Set a
String value. |
String |
stringValue()
Gets the value as a string.
|
String |
toString() |
clone, getCount, setCountpublic TermFacetBucket(String value, long count)
public TermFacetBucket(Number value, long count)
public TermFacetBucket(Date value, long count)
public TermFacetBucket(Boolean value, long count)
public TermFacetBucket(Point value, long count)
public Object getValue()
public String stringValue()
public int intValue()
int.IllegalArgumentException - if this value cannot be represented as an int.public long longValue()
long.IllegalArgumentException - if this value cannot be represented as a long.public double doubleValue()
double.IllegalArgumentException - if this value cannot be represented as a double.public float floatValue()
float.IllegalArgumentException - if this value cannot be represented as a float.public Date dateValue()
Date.IllegalArgumentException - if this value cannot be represented as a Date.public boolean booleanValue()
boolean.IllegalArgumentException - if this value cannot be represented as a boolean.public Point pointValue()
Point.IllegalArgumentException - if this value cannot be represented as a Point.public BigDecimal decimalValue()
BigDecimal.IllegalArgumentException - if this value cannot be represented as a BigDecimal.public String getDisplayValue()
getDisplayValue in class FacetBucketpublic Comparable<?> getSortValue()
getSortValue in class FacetBucketpublic Query getQueryFilter(FacetResponse facet)
Query to use for drilling down on this bucket.getQueryFilter 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.