public class AggregateBase<B extends Bucket> extends Object implements Aggregate<B>
Modifier and Type | Field and Description |
---|---|
protected Map<String,Bucket> |
bucketMap |
protected List<B> |
buckets |
protected AggregateDefinition |
definition |
protected List<Bucket> |
extendedBuckets |
protected DocumentModel |
searchDocument |
protected List<String> |
selection |
Constructor and Description |
---|
AggregateBase(AggregateDefinition definition,
DocumentModel searchDocument) |
Modifier and Type | Method and Description |
---|---|
Bucket |
getBucket(String key) |
Map<String,Bucket> |
getBucketMap() |
List<B> |
getBuckets()
The aggregate results.
|
List<AggregateRangeDateDefinition> |
getDateRanges()
Date Range definition for aggregate of type date range.
|
List<Bucket> |
getExtendedBuckets()
The regular list of buckets plus buckets with doc count at 0 for selected buckets which are not returned from es
post filtering.
|
String |
getField()
Nuxeo field to aggregate.
|
String |
getId()
The aggregate identifier.
|
Map<String,String> |
getProperties()
Properties of the aggregate.
|
List<AggregateRangeDefinition> |
getRanges()
Range definition for aggregate of type range.
|
DocumentModel |
getSearchDocument() |
List<String> |
getSelection()
The selection filter that is going to be applied to the main query as a post filter.
|
String |
getType()
Type of aggregation.
|
boolean |
hasBucket(String key) |
void |
resetSelection() |
void |
setBuckets(List<B> buckets) |
void |
setSelection(List<String> selection) |
String |
toString() |
protected final AggregateDefinition definition
protected final DocumentModel searchDocument
protected List<Bucket> extendedBuckets
public AggregateBase(AggregateDefinition definition, DocumentModel searchDocument)
public String getField()
Aggregate
public Map<String,String> getProperties()
Aggregate
getProperties
in interface Aggregate<B extends Bucket>
public List<AggregateRangeDefinition> getRanges()
Aggregate
public List<AggregateRangeDateDefinition> getDateRanges()
Aggregate
getDateRanges
in interface Aggregate<B extends Bucket>
public List<String> getSelection()
Aggregate
getSelection
in interface Aggregate<B extends Bucket>
public void setSelection(List<String> selection)
setSelection
in interface Aggregate<B extends Bucket>
public List<B> getBuckets()
Aggregate
getBuckets
in interface Aggregate<B extends Bucket>
public List<Bucket> getExtendedBuckets()
Aggregate
getExtendedBuckets
in interface Aggregate<B extends Bucket>
public void setBuckets(List<B> buckets)
setBuckets
in interface Aggregate<B extends Bucket>
public DocumentModel getSearchDocument()
public Map<String,Bucket> getBucketMap()
public void resetSelection()
resetSelection
in interface Aggregate<B extends Bucket>
Copyright © 2018 Nuxeo. All rights reserved.