public class Bucket extends Object implements Serializable
A container for facet information.
| Constructor and Description |
|---|
Bucket() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getCount()
The number of hits that contain the facet value in the specified facet
field.
|
String |
getValue()
The facet value being counted.
|
int |
hashCode() |
void |
setCount(Long count)
The number of hits that contain the facet value in the specified facet
field.
|
void |
setValue(String value)
The facet value being counted.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Bucket |
withCount(Long count)
The number of hits that contain the facet value in the specified facet
field.
|
Bucket |
withValue(String value)
The facet value being counted.
|
public String getValue()
public void setValue(String value)
value - The facet value being counted.public Bucket withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value - The facet value being counted.public Long getCount()
public void setCount(Long count)
count - The number of hits that contain the facet value in the specified facet
field.public Bucket withCount(Long count)
Returns a reference to this object so that method calls can be chained together.
count - The number of hits that contain the facet value in the specified facet
field.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.