Class LuceneNumericRangeAggregation<F,E extends Number,K>
- java.lang.Object
-
- org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneNestableAggregation<Map<K,V>>
-
- org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneBucketAggregation<Range<K>,Long>
-
- org.hibernate.search.backend.lucene.types.aggregation.impl.LuceneNumericRangeAggregation<F,E,K>
-
- Type Parameters:
F- The type of field values.E- The type of encoded field values.K- The type of keys in the returned map. It can beFor a different type if value converters are used.
- All Implemented Interfaces:
LuceneSearchAggregation<Map<Range<K>,Long>>,SearchAggregation<Map<Range<K>,Long>>
public class LuceneNumericRangeAggregation<F,E extends Number,K> extends AbstractLuceneBucketAggregation<Range<K>,Long>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLuceneNumericRangeAggregation.Builder<F,E extends Number,K>static classLuceneNumericRangeAggregation.Factory<F>static classLuceneNumericRangeAggregation.TypeSelector<F>-
Nested classes/interfaces inherited from class org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneBucketAggregation
AbstractLuceneBucketAggregation.AbstractBuilder<K,V>
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneBucketAggregation
absoluteFieldPath
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Range<K>,Long>extract(AggregationExtractContext context)Extract the result of the aggregation from the response.voidrequest(AggregationRequestContext context)Request the collection of per-document data that will be used inLuceneSearchAggregation.extract(AggregationExtractContext), making sure that the requirements for this projection are met.-
Methods inherited from class org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneBucketAggregation
getIndexNames
-
Methods inherited from class org.hibernate.search.backend.lucene.types.aggregation.impl.AbstractLuceneNestableAggregation
createNestedDocsProvider
-
-
-
-
Method Detail
-
request
public void request(AggregationRequestContext context)
Description copied from interface:LuceneSearchAggregationRequest the collection of per-document data that will be used inLuceneSearchAggregation.extract(AggregationExtractContext), making sure that the requirements for this projection are met.- Parameters:
context- A context that will share its state with the context passed toLuceneSearchAggregation.extract(AggregationExtractContext).
-
extract
public Map<Range<K>,Long> extract(AggregationExtractContext context) throws IOException
Description copied from interface:LuceneSearchAggregationExtract the result of the aggregation from the response.- Parameters:
context- The extract context, to extract information from the response's JSON body or retrieve information that was stored earlier inLuceneSearchAggregation.request(AggregationRequestContext).- Returns:
- The aggregation result extracted from the response.
- Throws:
IOException
-
-