public class Bucket
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A container for facet information.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
count
The number of hits that contain the facet value in the specified facet
field.
|
private java.lang.String |
value
The facet value being counted.
|
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
Bucket |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCount()
The number of hits that contain the facet value in the specified facet
field.
|
java.lang.String |
getValue()
The facet value being counted.
|
int |
hashCode() |
void |
setCount(java.lang.Long count)
The number of hits that contain the facet value in the specified facet
field.
|
void |
setValue(java.lang.String value)
The facet value being counted.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Bucket |
withCount(java.lang.Long count)
The number of hits that contain the facet value in the specified facet
field.
|
Bucket |
withValue(java.lang.String value)
The facet value being counted.
|
private java.lang.String value
The facet value being counted.
private java.lang.Long count
The number of hits that contain the facet value in the specified facet field.
public void setValue(java.lang.String value)
The facet value being counted.
value
- The facet value being counted.public java.lang.String getValue()
The facet value being counted.
public Bucket withValue(java.lang.String value)
The facet value being counted.
value
- The facet value being counted.public void setCount(java.lang.Long count)
The number of hits that contain the facet value in the specified facet field.
count
- The number of hits that contain the facet value in the specified
facet field.public java.lang.Long getCount()
The number of hits that contain the facet value in the specified facet field.
public Bucket withCount(java.lang.Long count)
The number of hits that contain the facet value in the specified facet field.
count
- The number of hits that contain the facet value in the specified
facet field.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Bucket clone()
clone
in class java.lang.Object