Class PageViewsByEntitiesAggregator<A,B,M,S>

java.lang.Object
org.openmetadata.service.dataInsight.PageViewsByEntitiesAggregator<A,B,M,S>
All Implemented Interfaces:
DataInsightAggregatorInterface
Direct Known Subclasses:
ElasticSearchPageViewsByEntitiesAggregator, OpenSearchPageViewsByEntitiesAggregator

public abstract class PageViewsByEntitiesAggregator<A,B,M,S> extends Object implements DataInsightAggregatorInterface
  • Constructor Details

    • PageViewsByEntitiesAggregator

      protected PageViewsByEntitiesAggregator(A aggregations)
  • Method Details

    • aggregate

      public List<Object> aggregate() throws ParseException
      Specified by:
      aggregate in interface DataInsightAggregatorInterface
      Throws:
      ParseException
    • getValue

      protected abstract Double getValue(S key)
    • getSumAggregations

      protected abstract S getSumAggregations(B bucket, String key)
    • getEntityBuckets

      protected abstract M getEntityBuckets(B bucket)
    • getKeyAsString

      protected abstract String getKeyAsString(B bucket)
    • getBuckets

      protected abstract List<? extends B> getBuckets(M multiBucketsAggregation)
    • getTimestampBuckets

      protected abstract M getTimestampBuckets(A aggregations)