Class FacetField
- java.lang.Object
-
- org.apache.solr.client.solrj.response.FacetField
-
- All Implemented Interfaces:
Serializable
public class FacetField extends Object implements Serializable
A utility class to hold the facet response. It could use the NamedList container, but for JSTL, it is nice to have something that implements List so it can be iterated- Since:
- solr 1.3
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FacetField.Count
-
Constructor Summary
Constructors Constructor Description FacetField(String n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String name, long cnt)
Insert at the end of the listFacetField
getLimitingFields(long max)
String
getName()
int
getValueCount()
List<FacetField.Count>
getValues()
void
insert(String name, long cnt)
Insert at the beginning of the list.String
toString()
-
-
-
Constructor Detail
-
FacetField
public FacetField(String n)
-
-
Method Detail
-
add
public void add(String name, long cnt)
Insert at the end of the list
-
insert
public void insert(String name, long cnt)
Insert at the beginning of the list.
-
getName
public String getName()
-
getValues
public List<FacetField.Count> getValues()
-
getValueCount
public int getValueCount()
-
getLimitingFields
public FacetField getLimitingFields(long max)
-
-