org.hibernate.search.query.dsl.impl

## Class DiscreteFacetRequest

- java.lang.Object
- - org.hibernate.search.query.dsl.impl.FacetingRequestImpl
  - - org.hibernate.search.query.dsl.impl.DiscreteFacetRequest

- All Implemented Interfaces:
    FacetingRequest

      public class DiscreteFacetRequest
      extends FacetingRequestImpl

  A facet request for string based fields.
  Author:
    Hardy Ferentschik

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Facet` | `createFacet(FacetMetadata facetMetadata, String value, int count)`
    `Class<?>` | `getFacetValueType()`

    - ### Methods inherited from class org.hibernate.search.query.dsl.impl.FacetingRequestImpl

      `getFacetingName, getFieldName, getMaxNumberOfFacets, getSort, hasZeroCountsIncluded, setIncludeZeroCounts, setMaxNumberOfFacets, setSort, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getFacetValueType

          public Class<?> getFacetValueType()

      Specified by:
        `getFacetValueType` in class `FacetingRequestImpl`
      Returns:
        the field value type on which the facets applies. This determines which type of facet query one needs to build.

    - #### createFacet

          public Facet createFacet(FacetMetadata facetMetadata,
                                   String value,
                                   int count)

      Specified by:
        `createFacet` in class `FacetingRequestImpl`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved