public static final class AggregatorFactory.MultiBucketAggregatorWrapper extends Aggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
NO_OP_COLLECTOR
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
buildAggregation(long bucket)
Build an aggregation for data that has been collected into
bucket . |
InternalAggregation |
buildEmptyAggregation()
Build an empty aggregation.
|
void |
close() |
SearchContext |
context()
Return the
SearchContext attached with this Aggregator . |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) |
java.lang.Class<?> |
getWrappedClass() |
java.lang.String |
name()
Return the name of this aggregator.
|
boolean |
needsScores() |
Aggregator |
parent()
Return the parent aggregator.
|
void |
postCollection()
Post-collection callback.
|
void |
preCollection()
Pre collection callback.
|
Aggregator |
subAggregator(java.lang.String name)
Return the sub aggregator with the provided name.
|
descendsFromBucketAggregator
wrap
public java.lang.Class<?> getWrappedClass()
public java.lang.String name()
Aggregator
name
in class Aggregator
public SearchContext context()
Aggregator
SearchContext
attached with this Aggregator
.context
in class Aggregator
public Aggregator parent()
Aggregator
parent
in class Aggregator
public boolean needsScores()
public Aggregator subAggregator(java.lang.String name)
Aggregator
subAggregator
in class Aggregator
public void preCollection() throws java.io.IOException
BucketCollector
preCollection
in class BucketCollector
java.io.IOException
public void postCollection() throws java.io.IOException
BucketCollector
postCollection
in class BucketCollector
java.io.IOException
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx)
getLeafCollector
in interface org.apache.lucene.search.Collector
getLeafCollector
in class BucketCollector
public InternalAggregation buildAggregation(long bucket) throws java.io.IOException
Aggregator
bucket
.buildAggregation
in class Aggregator
java.io.IOException
public InternalAggregation buildEmptyAggregation()
Aggregator
buildEmptyAggregation
in class Aggregator
public void close()