Class OpenSearchEntitiesDescriptionAggregator

java.lang.Object
org.openmetadata.service.dataInsight.EntitiesDescriptionAggregator<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.OpenSearchEntitiesDescriptionAggregator
All Implemented Interfaces:
DataInsightAggregatorInterface

public class OpenSearchEntitiesDescriptionAggregator extends EntitiesDescriptionAggregator<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

    • OpenSearchEntitiesDescriptionAggregator

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

    • getKeyAsString

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

      protected os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation getEntityBuckets(os.org.opensearch.search.aggregations.bucket.MultiBucketsAggregation.Bucket timestampBucket)
      Specified by:
      getEntityBuckets in class EntitiesDescriptionAggregator<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>
    • getTimestampBuckets

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

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