Class RangeFacetImpl<T>

java.lang.Object
org.hibernate.search.query.dsl.impl.AbstractFacet
org.hibernate.search.query.dsl.impl.RangeFacetImpl<T>
All Implemented Interfaces:
Facet, RangeFacet<T>

public class RangeFacetImpl<T> extends AbstractFacet implements RangeFacet<T>
  • Method Details

    • getFacetQuery

      public Query getFacetQuery()
      Specified by:
      getFacetQuery in interface Facet
      Specified by:
      getFacetQuery in class AbstractFacet
      Returns:
      a Lucene Query which can be applied just targeted all documents matching the value of this facet
    • getRangeIndex

      public int getRangeIndex()
    • getMin

      public T getMin()
      Specified by:
      getMin in interface RangeFacet<T>
      Returns:
      the lower boundary of this range
    • getMax

      public T getMax()
      Specified by:
      getMax in interface RangeFacet<T>
      Returns:
      the upper boundary of this range
    • isIncludeMin

      public boolean isIncludeMin()
      Specified by:
      isIncludeMin in interface RangeFacet<T>
      Returns:
      true if the lower boundary is included in the range, false otherwise
    • isIncludeMax

      public boolean isIncludeMax()
      Specified by:
      isIncludeMax in interface RangeFacet<T>
      Returns:
      true if the upper boundary is included in the range, false otherwise