public abstract class FacetingRequestImpl extends Object implements FacetingRequest
Constructor and Description |
---|
FacetingRequestImpl(String name,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
abstract Facet |
createFacet(String value,
int count) |
String |
getFacetingName() |
abstract Class<?> |
getFacetValueType() |
String |
getFieldName() |
int |
getMaxNumberOfFacets() |
FacetSortOrder |
getSort() |
boolean |
hasZeroCountsIncluded() |
void |
setIncludeZeroCounts(boolean includeZeroCounts) |
void |
setMaxNumberOfFacets(int maxNumberOfFacets) |
void |
setSort(FacetSortOrder sort) |
String |
toString() |
public String getFacetingName()
getFacetingName
in interface FacetingRequest
public String getFieldName()
getFieldName
in interface FacetingRequest
Document
field name on which this faceting request is defined onpublic void setSort(FacetSortOrder sort)
public FacetSortOrder getSort()
getSort
in interface FacetingRequest
Facet
s for this requestpublic int getMaxNumberOfFacets()
getMaxNumberOfFacets
in interface FacetingRequest
public void setMaxNumberOfFacets(int maxNumberOfFacets)
public abstract Class<?> getFacetValueType()
public boolean hasZeroCountsIncluded()
hasZeroCountsIncluded
in interface FacetingRequest
true
if facets with a count of 0 should be included in the returned facet listpublic void setIncludeZeroCounts(boolean includeZeroCounts)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved