org.hibernate.search.query.dsl.impl.ConnectedFacetContinuationContext Maven / Gradle / Ivy
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.query.dsl.impl;
import org.hibernate.search.query.dsl.DiscreteFacetContext;
import org.hibernate.search.query.dsl.FacetContinuationContext;
import org.hibernate.search.query.dsl.FacetRangeAboveBelowContext;
/**
* @author Hardy Ferentschik
*/
public class ConnectedFacetContinuationContext implements FacetContinuationContext {
private final FacetBuildingContext context;
public ConnectedFacetContinuationContext(FacetBuildingContext context) {
this.context = context;
}
@Override
public FacetRangeAboveBelowContext range() {
context.setRangeQuery( true );
return new ConnectedFacetRangeAboveBelowContext( context );
}
@Override
public DiscreteFacetContext discrete() {
return new ConnectedDiscreteFacetContext( context );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy