public class Bucket extends Object implements Serializable, Cloneable
A container for facet information.
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
Bucket |
clone() |
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 void setValue(String value)
The facet value being counted.
value
- The facet value being counted.public String getValue()
The facet value being counted.
public Bucket withValue(String value)
The facet value being counted.
value
- The facet value being counted.public void setCount(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 Long getCount()
The number of hits that contain the facet value in the specified facet field.
public Bucket withCount(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.