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>
  • Constructor Details

    • OpenSearchMostViewedEntitiesAggregator

      public OpenSearchMostViewedEntitiesAggregator(os.org.opensearch.search.aggregations.Aggregations aggregations)
  • Method Details

    • getValue

      protected Double getValue(os.org.opensearch.search.aggregations.metrics.Sum key)
      Specified by:
      getValue in class 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>
    • getBucketAggregation

      protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getBucketAggregation(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key)
      Specified by:
      getBucketAggregation in class 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>
    • getAggregations

      protected os.org.opensearch.search.aggregations.metrics.Sum getAggregations(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key)
      Specified by:
      getAggregations in class 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>
    • getKeyAsString

      protected String getKeyAsString(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket)
      Specified by:
      getKeyAsString in class 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>
    • getBuckets

      protected List<? extends os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket> getBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation bucket)
      Specified by:
      getBuckets in class 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>
    • getEntityFqnBuckets

      protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getEntityFqnBuckets(os.org.opensearch.search.aggregations.Aggregations aggregations)
      Specified by:
      getEntityFqnBuckets in class 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>