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>
-
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
ConstructorsConstructorDescriptionOpenSearchMostActiveUsersAggregator(os.org.opensearch.search.aggregations.Aggregations aggregations) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<? extends os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket>getBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation buckets) protected StringgetKeyAsString(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket) protected os.org.opensearch.search.aggregations.metrics.MaxgetMaxAggregations(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) protected LonggetMaxValue(os.org.opensearch.search.aggregations.metrics.Max key) protected os.org.opensearch.search.aggregations.metrics.SumgetSumAggregations(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket, String key) protected DoublegetSumValue(os.org.opensearch.search.aggregations.metrics.Sum key) protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregationgetTeamBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket bucket) protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregationgetUserNameBuckets(os.org.opensearch.search.aggregations.Aggregations aggregations) Methods inherited from class org.openmetadata.service.dataInsight.MostActiveUsersAggregator
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
-
OpenSearchMostActiveUsersAggregator
public OpenSearchMostActiveUsersAggregator(os.org.opensearch.search.aggregations.Aggregations aggregations)
-
-
Method Details
-
getSumValue
- Specified by:
getSumValuein classMostActiveUsersAggregator<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
- Specified by:
getMaxValuein classMostActiveUsersAggregator<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:
getKeyAsStringin classMostActiveUsersAggregator<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:
getSumAggregationsin classMostActiveUsersAggregator<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:
getMaxAggregationsin classMostActiveUsersAggregator<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:
getBucketsin classMostActiveUsersAggregator<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:
getUserNameBucketsin classMostActiveUsersAggregator<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:
getTeamBucketsin classMostActiveUsersAggregator<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>
-