public abstract class SortableFacet extends AnalyticsFacet
Modifier and Type | Class and Description |
---|---|
static class |
SortableFacet.FacetBucket |
static class |
SortableFacet.FacetSortSpecification
Specifies how to sort the buckets of a sortable facet.
|
Modifier and Type | Field and Description |
---|---|
protected SortableFacet.FacetSortSpecification |
sort |
collectionManager, expressionCalculator, name, reductionData
Modifier | Constructor and Description |
---|---|
protected |
SortableFacet(String name) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<SortableFacet.FacetBucket> |
applyOptions(List<SortableFacet.FacetBucket> facetResults)
Apply the sorting options to the given facet results.
|
NamedList<Object> |
createOldResponse()
Create the old olap-style response of the facet to be returned in the overall analytics response.
|
Iterable<Map<String,Object>> |
createResponse()
Create the response of the facet to be returned in the overall analytics response.
|
SortableFacet.FacetSortSpecification |
getSort() |
void |
setSort(SortableFacet.FacetSortSpecification sort) |
exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
protected SortableFacet.FacetSortSpecification sort
protected SortableFacet(String name)
public NamedList<Object> createOldResponse()
AnalyticsFacet
createOldResponse
in class AnalyticsFacet
public Iterable<Map<String,Object>> createResponse()
AnalyticsFacet
createResponse
in class AnalyticsFacet
protected Iterable<SortableFacet.FacetBucket> applyOptions(List<SortableFacet.FacetBucket> facetResults)
facetResults
- to apply sorting options topublic SortableFacet.FacetSortSpecification getSort()
public void setSort(SortableFacet.FacetSortSpecification sort)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.