Class EntitiesDescriptionAggregator<A,B,M,S>

java.lang.Object
org.openmetadata.service.dataInsight.EntitiesDescriptionAggregator<A,B,M,S>
All Implemented Interfaces:
DataInsightAggregatorInterface
Direct Known Subclasses:
ElasticSearchEntitiesDescriptionAggregator, OpenSearchEntitiesDescriptionAggregator

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

    • EntitiesDescriptionAggregator

      protected EntitiesDescriptionAggregator(A aggregations)
  • Method Details

    • aggregate

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

      protected abstract String getKeyAsString(B bucket)
    • getBuckets

      protected abstract List<? extends B> getBuckets(M bucket)
    • getEntityBuckets

      protected abstract M getEntityBuckets(B timestampBucket)
    • getTimestampBuckets

      protected abstract M getTimestampBuckets(A aggregations)
    • getAggregations

      protected abstract S getAggregations(B bucket, String key)
    • getValue

      protected abstract Double getValue(S aggregations)