org.elasticsearch.search.aggregations.NonCollectingAggregator Java Examples
The following examples show how to use
org.elasticsearch.search.aggregations.NonCollectingAggregator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PathHierarchyAggregatorFactory.java From elasticsearch-aggregation-pathhierarchy with MIT License | 6 votes |
@Override protected Aggregator createUnmapped( SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { final InternalAggregation aggregation = new InternalPathHierarchy(name, new ArrayList<>(), order, minDocCount, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), 0, separator, pipelineAggregators, metaData); return new NonCollectingAggregator(name, searchContext, parent, factories, pipelineAggregators, metaData) { { // even in the case of an unmapped aggregator, validate the // order InternalOrder.validate(order, this); } @Override public InternalAggregation buildEmptyAggregation() { return aggregation; } }; }
Example #2
Source File: DateHierarchyAggregatorFactory.java From elasticsearch-aggregation-pathhierarchy with MIT License | 6 votes |
@Override protected Aggregator createUnmapped( SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { final InternalAggregation aggregation = new InternalDateHierarchy(name, new ArrayList<>(), order, minDocCount, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), 0, pipelineAggregators, metaData); return new NonCollectingAggregator(name, searchContext, parent, factories, pipelineAggregators, metaData) { { // even in the case of an unmapped aggregator, validate the // order InternalOrder.validate(order, this); } @Override public InternalAggregation buildEmptyAggregation() { return aggregation; } }; }
Example #3
Source File: ParentToChildrenAggregator.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new NonCollectingAggregator(name, aggregationContext, parent, pipelineAggregators, metaData) { @Override public InternalAggregation buildEmptyAggregation() { return new InternalChildren(name, 0, buildEmptySubAggregations(), pipelineAggregators(), metaData()); } }; }
Example #4
Source File: GeoHashGridParser.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { final InternalAggregation aggregation = new InternalGeoHashGrid(name, requiredSize, Collections.<InternalGeoHashGrid.Bucket> emptyList(), pipelineAggregators, metaData); return new NonCollectingAggregator(name, aggregationContext, parent, pipelineAggregators, metaData) { public InternalAggregation buildEmptyAggregation() { return aggregation; } }; }
Example #5
Source File: GeoShapeAggregatorFactory.java From elasticsearch-plugin-geoshape with MIT License | 5 votes |
@Override protected Aggregator createUnmapped( SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { final InternalAggregation aggregation = new InternalGeoShape(name, new ArrayList<>(), output_format, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), pipelineAggregators, metaData); return new NonCollectingAggregator(name, searchContext, parent, factories, pipelineAggregators, metaData) { @Override public InternalAggregation buildEmptyAggregation() { return aggregation; } }; }
Example #6
Source File: GeoPointClusteringAggregatorFactory.java From elasticsearch-aggregation-geoclustering with Apache License 2.0 | 5 votes |
@Override protected Aggregator createUnmapped( SearchContext searchContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData ) throws IOException { final InternalAggregation aggregation = new InternalGeoPointClustering(name, radius, ratio, requiredSize, Collections.<InternalGeoPointClustering.Bucket> emptyList(), pipelineAggregators, metaData); return new NonCollectingAggregator(name, searchContext, parent, pipelineAggregators, metaData) { @Override public InternalAggregation buildEmptyAggregation() { return aggregation; } }; }