protected class DeferringBucketCollector.WrappedAggregator 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() |
AggregationContext |
context()
Return the
AggregationContext attached with this Aggregator . |
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) |
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(String name)
Return the sub aggregator with the provided name.
|
descendsFromBucketAggregator
wrap
public boolean needsScores()
public void close()
public String name()
Aggregator
name
in class Aggregator
public Aggregator parent()
Aggregator
parent
in class Aggregator
public AggregationContext context()
Aggregator
AggregationContext
attached with this Aggregator
.context
in class Aggregator
public Aggregator subAggregator(String name)
Aggregator
subAggregator
in class Aggregator
public InternalAggregation buildAggregation(long bucket) throws IOException
Aggregator
bucket
.buildAggregation
in class Aggregator
IOException
public InternalAggregation buildEmptyAggregation()
Aggregator
buildEmptyAggregation
in class Aggregator
public LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafCollector
in interface org.apache.lucene.search.Collector
getLeafCollector
in class BucketCollector
IOException
public void preCollection() throws IOException
BucketCollector
preCollection
in class BucketCollector
IOException
public void postCollection() throws IOException
BucketCollector
postCollection
in class BucketCollector
IOException
Copyright © 2009–2016. All rights reserved.