Package org.apache.iceberg.metrics
Interface MetricsReporter
- All Superinterfaces:
- AutoCloseable,- Closeable
- All Known Implementing Classes:
- InMemoryMetricsReporter,- LoggingMetricsReporter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface defines the basic API for reporting metrics for operations to a Table.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidclose()default voidinitialize(Map<String, String> properties) A custom MetricsReporter implementation must have a no-arg constructor, which will be called first.voidreport(MetricsReport report) Indicates that an operation is done by reporting aMetricsReport.
- 
Method Details- 
initializeA custom MetricsReporter implementation must have a no-arg constructor, which will be called first.initialize(Map properties)is called to complete the initialization.- Parameters:
- properties- properties
 
- 
reportIndicates that an operation is done by reporting aMetricsReport. AMetricsReportis usually directly derived from aMetricsReportinstance.- Parameters:
- report- The- MetricsReportto report.
 
- 
closedefault void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
-