Class NestableJsonFacet
- java.lang.Object
- 
- org.apache.solr.client.solrj.response.json.NestableJsonFacet
 
- 
- Direct Known Subclasses:
- BucketJsonFacet
 
 public class NestableJsonFacet extends Object Represents the response to a "query" JSON facet.Relies on several other types to represent the variety of JSON facet responses. The parsing of these responses relies partially on the JSON property names. When naming your facets in your request, avoid choosing names that match existing values in the JSON faceting response schema, such as "count", "val", "minX", etc. 
- 
- 
Constructor SummaryConstructors Constructor Description NestableJsonFacet(NamedList<?> facetNL)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getBucketBasedFacetNames()BucketBasedJsonFacetgetBucketBasedFacets(String name)Retrieve a nested "terms" or "range" facet by its name.longgetCount()The number of records matching the domain of this facet.HeatmapJsonFacetgetHeatmapFacetByName(String name)Retrieve a "heatmap" facet by its nameSet<String>getHeatmapFacetNames()protected Set<String>getKeysToSkip()NestableJsonFacetgetQueryFacet(String name)Retrieve a nested "query" facet by its nameSet<String>getQueryFacetNames()Set<String>getStatNames()ObjectgetStatValue(String name)Retrieve the value for a stat or agg with the provided name
 
- 
- 
- 
Constructor Detail- 
NestableJsonFacetpublic NestableJsonFacet(NamedList<?> facetNL) 
 
- 
 - 
Method Detail- 
getCountpublic long getCount() The number of records matching the domain of this facet.
 - 
getQueryFacetpublic NestableJsonFacet getQueryFacet(String name) Retrieve a nested "query" facet by its name
 - 
getQueryFacetNamespublic Set<String> getQueryFacetNames() - Returns:
- the names of any "query" facets that are direct descendants of the current facet
 
 - 
getBucketBasedFacetspublic BucketBasedJsonFacet getBucketBasedFacets(String name) Retrieve a nested "terms" or "range" facet by its name.
 - 
getBucketBasedFacetNamespublic Set<String> getBucketBasedFacetNames() - Returns:
- the names of any "terms" or "range" facets that are direct descendants of this facet
 
 - 
getStatValuepublic Object getStatValue(String name) Retrieve the value for a stat or agg with the provided name
 - 
getStatNamespublic Set<String> getStatNames() - Returns:
- the names of any stat or agg that are direct descendants of this facet
 
 - 
getHeatmapFacetByNamepublic HeatmapJsonFacet getHeatmapFacetByName(String name) Retrieve a "heatmap" facet by its name
 - 
getHeatmapFacetNamespublic Set<String> getHeatmapFacetNames() - Returns:
- the names of any heatmap facets that are direct descendants of this facet
 
 
- 
 
-