Class LuceneSearchAggregationFactoryImpl
- java.lang.Object
-
- org.hibernate.search.engine.search.aggregation.dsl.spi.AbstractSearchAggregationFactory<LuceneSearchAggregationFactory,LuceneSearchAggregationIndexScope<?>,LuceneSearchPredicateFactory>
-
- org.hibernate.search.backend.lucene.search.aggregation.dsl.impl.LuceneSearchAggregationFactoryImpl
-
- All Implemented Interfaces:
LuceneSearchAggregationFactory,ExtendedSearchAggregationFactory<LuceneSearchAggregationFactory,LuceneSearchPredicateFactory>,SearchAggregationFactory
public class LuceneSearchAggregationFactoryImpl extends AbstractSearchAggregationFactory<LuceneSearchAggregationFactory,LuceneSearchAggregationIndexScope<?>,LuceneSearchPredicateFactory> implements LuceneSearchAggregationFactory
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.engine.search.aggregation.dsl.spi.AbstractSearchAggregationFactory
dslContext
-
-
Constructor Summary
Constructors Constructor Description LuceneSearchAggregationFactoryImpl(SearchAggregationDslContext<LuceneSearchAggregationIndexScope<?>,LuceneSearchPredicateFactory> dslContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LuceneSearchAggregationFactorywithRoot(String objectFieldPath)Create a new aggregation factory whose root for all paths passed to the DSL will be the given object field.-
Methods inherited from class org.hibernate.search.engine.search.aggregation.dsl.spi.AbstractSearchAggregationFactory
extension, range, terms, toAbsolutePath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.ExtendedSearchAggregationFactory
range, terms
-
Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.SearchAggregationFactory
extension, toAbsolutePath
-
-
-
-
Constructor Detail
-
LuceneSearchAggregationFactoryImpl
public LuceneSearchAggregationFactoryImpl(SearchAggregationDslContext<LuceneSearchAggregationIndexScope<?>,LuceneSearchPredicateFactory> dslContext)
-
-
Method Detail
-
withRoot
public LuceneSearchAggregationFactory withRoot(String objectFieldPath)
Description copied from interface:SearchAggregationFactoryCreate a new aggregation factory whose root for all paths passed to the DSL will be the given object field.See here for more information.
- Specified by:
withRootin interfaceExtendedSearchAggregationFactory<LuceneSearchAggregationFactory,LuceneSearchPredicateFactory>- Specified by:
withRootin interfaceSearchAggregationFactory- Parameters:
objectFieldPath- The path from the current root to an object field that will become the new root.- Returns:
- A new aggregation factory using the given object field as root.
-
-