Class ElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator
java.lang.Object
org.openmetadata.service.dataInsight.AggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket,es.org.elasticsearch.search.aggregations.metrics.Sum>
org.openmetadata.service.search.elasticsearch.dataInsightAggregators.ElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator
- All Implemented Interfaces:
DataInsightAggregatorInterface
public class ElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator
extends AggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket,es.org.elasticsearch.search.aggregations.metrics.Sum>
-
Field Summary
Fields inherited from interface org.openmetadata.service.dataInsight.DataInsightAggregatorInterface
COMPLETED_DESCRIPTION_FRACTION, ENTITY_COUNT, ENTITY_TIER, ENTITY_TYPE, HAS_OWNER_FRACTION, SERVICE_NAME, TIMESTAMP -
Constructor Summary
ConstructorsConstructorDescriptionElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator(es.org.elasticsearch.search.aggregations.Aggregations aggregations) -
Method Summary
Modifier and TypeMethodDescriptionprotected es.org.elasticsearch.search.aggregations.metrics.SumgetAggregations(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket bucket, String key) protected List<? extends es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket>getBuckets(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram histogramBucket) protected es.org.elasticsearch.search.aggregations.bucket.histogram.HistogramgetHistogramBucket(es.org.elasticsearch.search.aggregations.Aggregations aggregations) protected StringgetKeyAsString(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket bucket) protected DoublegetValue(es.org.elasticsearch.search.aggregations.metrics.Sum aggregations) Methods inherited from class org.openmetadata.service.dataInsight.AggregatedUsedvsUnusedAssetsCountAggregator
aggregateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openmetadata.service.dataInsight.DataInsightAggregatorInterface
convertDatTimeStringToTimestamp, process
-
Constructor Details
-
ElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator
public ElasticSearchAggregatedUsedvsUnusedAssetsCountAggregator(es.org.elasticsearch.search.aggregations.Aggregations aggregations)
-
-
Method Details
-
getHistogramBucket
protected es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram getHistogramBucket(es.org.elasticsearch.search.aggregations.Aggregations aggregations) - Specified by:
getHistogramBucketin classAggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram, es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket, es.org.elasticsearch.search.aggregations.metrics.Sum>
-
getBuckets
protected List<? extends es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket> getBuckets(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram histogramBucket) - Specified by:
getBucketsin classAggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram, es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket, es.org.elasticsearch.search.aggregations.metrics.Sum>
-
getKeyAsString
protected String getKeyAsString(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket bucket) - Specified by:
getKeyAsStringin classAggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram, es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket, es.org.elasticsearch.search.aggregations.metrics.Sum>
-
getAggregations
protected es.org.elasticsearch.search.aggregations.metrics.Sum getAggregations(es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket bucket, String key) - Specified by:
getAggregationsin classAggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram, es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket, es.org.elasticsearch.search.aggregations.metrics.Sum>
-
getValue
- Specified by:
getValuein classAggregatedUsedvsUnusedAssetsCountAggregator<es.org.elasticsearch.search.aggregations.Aggregations,es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram, es.org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket, es.org.elasticsearch.search.aggregations.metrics.Sum>
-