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 SummaryNested classes/interfaces inherited from interface org.apache.iceberg.metrics.MetricsContextMetricsContext.Counter<T extends Number>, MetricsContext.Unit
- 
Field SummaryFieldsFields inherited from interface org.apache.iceberg.io.FileIOMetricsContextREAD_BYTES, READ_OPERATIONS, WRITE_BYTES, WRITE_OPERATIONS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidinitialize(Map<String, String> properties) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.metrics.MetricsContextcounter, histogram, timer
- 
Field Details- 
SCHEME- See Also:
 
 
- 
- 
Constructor Details- 
HadoopMetricsContext
 
- 
- 
Method Details- 
initialize- Specified by:
- initializein interface- MetricsContext
 
- 
counterpublic <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:
- counterin interface- MetricsContext
- Type Parameters:
- T- Counter numeric type
- Parameters:
- name- name of the metric
- type- numeric type of the counter value
- unit- ignored
- Returns:
- counter
 
- 
counterThe 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:
- counterin interface- MetricsContext
- Parameters:
- name- name of the metric
- unit- ignored
- Returns:
- counter
 
 
-