org.openmetadata.service.search.indexes.EntityReportDataIndex Maven / Gradle / Ivy
package org.openmetadata.service.search.indexes;
import java.util.Map;
import org.openmetadata.schema.analytics.ReportData;
import org.openmetadata.service.util.JsonUtils;
public record EntityReportDataIndex(ReportData reportData) implements SearchIndex {
@Override
public Object getEntity() {
return reportData;
}
@Override
public Map buildSearchIndexDocInternal(Map esDoc) {
Map doc = JsonUtils.getMap(reportData);
doc.put("entityType", "entityReportData");
return doc;
}
}