public abstract class AggregationCommand extends Object
This class is meant as a part of SearchServerCommand. It expresses data aggregation commands for the search
server. In some cases, aggregations can be seen as a 'group by'-like feature, however the approach is more general.
For example, the 'maximum' aggregation only returns the maximum value of a field (or even the document score), the
'terms' aggregation is basically the term facets approach. This is heavily modeled after ElasticSearch aggregations.
Aggregations can be nested, so this class serves as a common super type for aggregation commands to allow flexible, general nesting.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations.html| Modifier and Type | Class and Description |
|---|---|
static class |
AggregationCommand.OrderCommand |
| Modifier and Type | Field and Description |
|---|---|
String |
name
The name of this aggregation to identify it in the results.
|
Map<String,AggregationCommand> |
subaggregations
A list of sub-aggregations of this aggregation.
|
| Constructor and Description |
|---|
AggregationCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubaggregation(AggregationCommand aggregation) |
AggregationCommand |
getSubaggregation(String name) |
public String name
public Map<String,AggregationCommand> subaggregations
public void addSubaggregation(AggregationCommand aggregation)
public AggregationCommand getSubaggregation(String name)
Copyright © 2017 JULIE Lab, Germany. All rights reserved.