Class OpenSearchMostActiveUsersAggregator

java.lang.Object
org.openmetadata.service.dataInsight.MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>
org.openmetadata.service.search.opensearch.dataInsightAggregator.OpenSearchMostActiveUsersAggregator
All Implemented Interfaces:
DataInsightAggregatorInterface

public class OpenSearchMostActiveUsersAggregator extends MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>
  • Constructor Details

    • OpenSearchMostActiveUsersAggregator

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

    • getSumValue

      protected Double getSumValue(os.org.opensearch.search.aggregations.metrics.Sum key)
      Specified by:
      getSumValue in class MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>
    • getMaxValue

      protected Long getMaxValue(os.org.opensearch.search.aggregations.metrics.Max key)
      Specified by:
      getMaxValue in class MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>
    • getKeyAsString

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

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

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

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

      protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getUserNameBuckets(os.org.opensearch.search.aggregations.Aggregations aggregations)
      Specified by:
      getUserNameBuckets in class MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>
    • getTeamBuckets

      protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getTeamBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket)
      Specified by:
      getTeamBuckets in class MostActiveUsersAggregator<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,os.org.opensearch.search.aggregations.metrics.Max>