org.hibernate.search.query.dsl.impl
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<?> |
getFieldCacheType() |
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 FacetingRequestpublic String getFieldName()
getFieldName in interface FacetingRequestDocument field name on which this faceting request is defined onpublic void setSort(FacetSortOrder sort)
public FacetSortOrder getSort()
getSort in interface FacetingRequestFacets for this requestpublic int getMaxNumberOfFacets()
getMaxNumberOfFacets in interface FacetingRequestpublic void setMaxNumberOfFacets(int maxNumberOfFacets)
public abstract Class<?> getFieldCacheType()
public boolean hasZeroCountsIncluded()
hasZeroCountsIncluded in interface FacetingRequesttrue if facets with a count of 0 should be included in the returned facet listpublic void setIncludeZeroCounts(boolean includeZeroCounts)
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved