public class NativeEsAggregate extends AggregateEsBase<org.elasticsearch.search.aggregations.Aggregation,Bucket>
Modifier and Type | Field and Description |
---|---|
protected org.elasticsearch.search.aggregations.AggregationBuilder |
nativeAggregation |
protected Consumer<org.elasticsearch.search.aggregations.Aggregation> |
parser |
ES_MUTLI_LEVEL_SEP, MAX_AGG_SIZE, XPATH_SEP
bucketMap, buckets, definition, extendedBuckets, searchDocument, selection
Constructor and Description |
---|
NativeEsAggregate(AggregateDefinition definition,
org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation,
Consumer<org.elasticsearch.search.aggregations.Aggregation> parser) |
NativeEsAggregate(org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation,
Consumer<org.elasticsearch.search.aggregations.Aggregation> parser)
Construct the aggregate using an ElasticSearch aggregate builder and a parser that will consume the response.
|
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.search.aggregations.AggregationBuilder |
getEsAggregate()
Return the Elasticsearch aggregate builder
|
org.elasticsearch.index.query.QueryBuilder |
getEsFilter()
Return the Elasticsearch aggregate filter corresponding to the selection
|
protected static AggregateDefinition |
makeDefinition(org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation)
For backwards compatibility make an AggregateDefinition.
|
void |
parseAggregation(org.elasticsearch.search.aggregations.Aggregation aggregation)
Extract the aggregation from the Elasticsearch response
|
String |
toString() |
getAggSize, getField
getBucket, getBucketMap, getBuckets, getDateRanges, getExtendedBuckets, getId, getProperties, getRanges, getSearchDocument, getSelection, getType, hasBucket, resetSelection, setBuckets, setSelection
protected final org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation
public NativeEsAggregate(AggregateDefinition definition, org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation, Consumer<org.elasticsearch.search.aggregations.Aggregation> parser)
public NativeEsAggregate(org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation, Consumer<org.elasticsearch.search.aggregations.Aggregation> parser)
protected static AggregateDefinition makeDefinition(org.elasticsearch.search.aggregations.AggregationBuilder nativeAggregation)
public org.elasticsearch.search.aggregations.AggregationBuilder getEsAggregate()
AggregateEsBase
getEsAggregate
in class AggregateEsBase<org.elasticsearch.search.aggregations.Aggregation,Bucket>
public org.elasticsearch.index.query.QueryBuilder getEsFilter()
AggregateEsBase
getEsFilter
in class AggregateEsBase<org.elasticsearch.search.aggregations.Aggregation,Bucket>
public void parseAggregation(org.elasticsearch.search.aggregations.Aggregation aggregation)
AggregateEsBase
parseAggregation
in class AggregateEsBase<org.elasticsearch.search.aggregations.Aggregation,Bucket>
public String toString()
toString
in class AggregateBase<Bucket>
Copyright © 2019 Nuxeo. All rights reserved.