Package org.apache.iceberg.metrics
Interface MetricsReporter
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.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.
@FunctionalInterface public interface MetricsReporter extends java.io.Closeable
This interface defines the basic API for reporting metrics for operations to a Table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
default void
initialize(java.util.Map<java.lang.String,java.lang.String> properties)
A custom MetricsReporter implementation must have a no-arg constructor, which will be called first.void
report(MetricsReport report)
Indicates that an operation is done by reporting aMetricsReport
.
-
-
-
Method Detail
-
initialize
default void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
A 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
-
report
void report(MetricsReport report)
Indicates that an operation is done by reporting aMetricsReport
. AMetricsReport
is usually directly derived from aMetricsReport
instance.- Parameters:
report
- TheMetricsReport
to report.
-
close
default void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-