Class OpenSearchMostViewedEntitiesAggregator
java.lang.Object
org.openmetadata.service.dataInsight.MostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,os.org.opensearch.search.aggregations.metrics.Sum>
org.openmetadata.service.search.opensearch.dataInsightAggregator.OpenSearchMostViewedEntitiesAggregator
- All Implemented Interfaces:
DataInsightAggregatorInterface
public class OpenSearchMostViewedEntitiesAggregator
extends MostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation,os.org.opensearch.search.aggregations.metrics.Sum>
-
Field Summary
Fields inherited from class org.openmetadata.service.dataInsight.MostViewedEntitiesAggregator
aggregationsFields 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
ConstructorsConstructorDescriptionOpenSearchMostViewedEntitiesAggregator(os.org.opensearch.search.aggregations.Aggregations aggregations) -
Method Summary
Modifier and TypeMethodDescriptionprotected os.org.opensearch.search.aggregations.metrics.SumgetAggregations(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregationgetBucketAggregation(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) protected List<? extends os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket>getBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation bucket) protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregationgetEntityFqnBuckets(os.org.opensearch.search.aggregations.Aggregations aggregations) protected StringgetKeyAsString(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket) protected DoublegetValue(os.org.opensearch.search.aggregations.metrics.Sum key) Methods inherited from class org.openmetadata.service.dataInsight.MostViewedEntitiesAggregator
aggregate, getFirstValueFromBucketOrNullMethods 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
-
OpenSearchMostViewedEntitiesAggregator
public OpenSearchMostViewedEntitiesAggregator(os.org.opensearch.search.aggregations.Aggregations aggregations)
-
-
Method Details
-
getValue
- Specified by:
getValuein classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-
getBucketAggregation
protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getBucketAggregation(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) - Specified by:
getBucketAggregationin classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-
getAggregations
protected os.org.opensearch.search.aggregations.metrics.Sum getAggregations(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) - Specified by:
getAggregationsin classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-
getKeyAsString
protected String getKeyAsString(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket) - Specified by:
getKeyAsStringin classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-
getBuckets
protected List<? extends os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> getBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation bucket) - Specified by:
getBucketsin classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-
getEntityFqnBuckets
protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getEntityFqnBuckets(os.org.opensearch.search.aggregations.Aggregations aggregations) - Specified by:
getEntityFqnBucketsin classMostViewedEntitiesAggregator<os.org.opensearch.search.aggregations.Aggregations,os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket, os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation, os.org.opensearch.search.aggregations.metrics.Sum>
-