Package org.apache.druid.indexer.report
Class SingleFileTaskReportFileWriter
java.lang.Object
org.apache.druid.indexer.report.SingleFileTaskReportFileWriter
- All Implemented Interfaces:
TaskReportFileWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetReportsFile(String taskId) Returns the reports file for the given taskId.openReportOutputStream(String taskId) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidwrite(String taskId, TaskReport.ReportMap reports) static voidwriteReportToStream(com.fasterxml.jackson.databind.ObjectMapper objectMapper, OutputStream outputStream, TaskReport.ReportMap reports)
-
Constructor Details
-
SingleFileTaskReportFileWriter
-
-
Method Details
-
write
- Specified by:
writein interfaceTaskReportFileWriter
-
openReportOutputStream
- Specified by:
openReportOutputStreamin interfaceTaskReportFileWriter- Throws:
IOException
-
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) - Specified by:
setObjectMapperin interfaceTaskReportFileWriter
-
getReportsFile
Description copied from interface:TaskReportFileWriterReturns the reports file for the given taskId. Returns null if writer does not write reports to any file.- Specified by:
getReportsFilein interfaceTaskReportFileWriter
-
writeReportToStream
public static void writeReportToStream(com.fasterxml.jackson.databind.ObjectMapper objectMapper, OutputStream outputStream, TaskReport.ReportMap reports) throws Exception - Throws:
Exception
-