
org.hibernate.search.query.dsl.impl.RangeFacetImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-v5migrationhelper-engine Show documentation
Show all versions of hibernate-search-v5migrationhelper-engine Show documentation
Helper to migrate from Hibernate Search 5 to 6, providing partial support for Hibernate Search 5 Engine APIs on top of Hibernate Search 6
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.query.dsl.impl;
import org.hibernate.search.query.facet.RangeFacet;
/**
* @author Hardy Ferentschik
*/
public class RangeFacetImpl extends AbstractFacet implements RangeFacet {
/**
* The facet range, speak the min and max values for this range facet
*/
private final FacetRange range;
RangeFacetImpl(String facetingName, String absoluteFieldPath, FacetRange range, int count) {
super( facetingName, absoluteFieldPath, range.getRangeString(), count );
this.range = range;
}
@Override
public T getMin() {
return range.getMin();
}
@Override
public T getMax() {
return range.getMax();
}
@Override
public boolean isIncludeMin() {
return range.isMinIncluded();
}
@Override
public boolean isIncludeMax() {
return range.isMaxIncluded();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy