All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.service.search.indexes.RawCostAnalysisReportDataIndex Maven / Gradle / Ivy

There is a newer version: 1.5.11
Show newest version
package org.openmetadata.service.search.indexes;

import java.util.Map;
import org.openmetadata.schema.analytics.ReportData;
import org.openmetadata.service.util.JsonUtils;

public record RawCostAnalysisReportDataIndex(ReportData reportData) implements SearchIndex {
  @Override
  public Object getEntity() {
    return reportData;
  }

  @Override
  public Map buildSearchIndexDocInternal(Map esDoc) {
    Map doc = JsonUtils.getMap(reportData);
    doc.put("entityType", "rawCostAnalysisReportData");
    return doc;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy