Package org.apache.iceberg.hadoop
Class HadoopMetricsContext
java.lang.Object
org.apache.iceberg.hadoop.HadoopMetricsContext
- All Implemented Interfaces:
Serializable
,FileIOMetricsContext
,MetricsContext
FileIO Metrics implementation that delegates to Hadoop FileSystem statistics implementation using
the provided scheme.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.metrics.MetricsContext
MetricsContext.Counter<T extends Number>, MetricsContext.Unit
-
Field Summary
Fields inherited from interface org.apache.iceberg.io.FileIOMetricsContext
READ_BYTES, READ_OPERATIONS, WRITE_BYTES, WRITE_OPERATIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Number>
MetricsContext.Counter<T>counter
(String name, Class<T> type, MetricsContext.Unit unit) The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore does not require support for operations like unit() and count() as the counter values are not directly consumed.counter
(String name, MetricsContext.Unit unit) The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore does not require support for operations like unit() as the counter values are not directly consumed.void
initialize
(Map<String, String> properties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.iceberg.metrics.MetricsContext
counter, histogram, timer
-
Field Details
-
SCHEME
- See Also:
-
-
Constructor Details
-
HadoopMetricsContext
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceMetricsContext
-
counter
public <T extends Number> MetricsContext.Counter<T> counter(String name, Class<T> type, MetricsContext.Unit unit) The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore does not require support for operations like unit() and count() as the counter values are not directly consumed.- Specified by:
counter
in interfaceMetricsContext
- Type Parameters:
T
- Counter numeric type- Parameters:
name
- name of the metrictype
- numeric type of the counter valueunit
- ignored- Returns:
- counter
-
counter
The Hadoop implementation delegates to the FileSystem.Statistics implementation and therefore does not require support for operations like unit() as the counter values are not directly consumed.- Specified by:
counter
in interfaceMetricsContext
- Parameters:
name
- name of the metricunit
- ignored- Returns:
- counter
-