Package org.apache.iceberg
Class Metrics
java.lang.Object
org.apache.iceberg.Metrics
- All Implemented Interfaces:
- Serializable
Iceberg file format metrics.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMetrics()Metrics(long rowCount) Metrics(Long rowCount, Map<Integer, Long> columnSizes, Map<Integer, Long> valueCounts, Map<Integer, Long> nullValueCounts, Map<Integer, Long> nanValueCounts) Metrics(Long rowCount, Map<Integer, Long> columnSizes, Map<Integer, Long> valueCounts, Map<Integer, Long> nullValueCounts, Map<Integer, Long> nanValueCounts, Map<Integer, ByteBuffer> lowerBounds, Map<Integer, ByteBuffer> upperBounds) Metrics(Long rowCount, Map<Integer, Long> columnSizes, Map<Integer, Long> valueCounts, Map<Integer, Long> nullValueCounts, Map<Integer, Long> nanValueCounts, Map<Integer, ByteBuffer> lowerBounds, Map<Integer, ByteBuffer> upperBounds, Map<Integer, Type> originalTypes) 
- 
Method SummaryModifier and TypeMethodDescriptionGet the number of bytes for all fields in a file.Get the non-null lower bound values for all fields in a file.Get the number of NaN values for all float and double fields in a file.Get the number of null values for all fields in a file.Get the number of records (rows) in file.Get the non-null upper bound values for all fields in a file.Get the number of all values, including nulls, NaN and repeated.
- 
Constructor Details- 
Metricspublic Metrics()
- 
Metricspublic Metrics(long rowCount) 
- 
Metrics
- 
Metrics
- 
Metrics
 
- 
- 
Method Details- 
recordCountGet the number of records (rows) in file.- Returns:
- the count of records (rows) in the file as a long
 
- 
columnSizesGet the number of bytes for all fields in a file.- Returns:
- a Map of fieldId to the size in bytes
 
- 
valueCountsGet the number of all values, including nulls, NaN and repeated.- Returns:
- a Map of fieldId to the number of all values including nulls, NaN and repeated
 
- 
nullValueCountsGet the number of null values for all fields in a file.- Returns:
- a Map of fieldId to the number of nulls
 
- 
nanValueCountsGet the number of NaN values for all float and double fields in a file.- Returns:
- a Map of fieldId to the number of NaN counts
 
- 
lowerBoundsGet the non-null lower bound values for all fields in a file.To convert the ByteBufferback to a value, useConversions.fromByteBuffer(org.apache.iceberg.types.Type, java.nio.ByteBuffer).- Returns:
- a Map of fieldId to the lower bound value as a ByteBuffer
- See Also:
 
- 
upperBoundsGet the non-null upper bound values for all fields in a file.- Returns:
- a Map of fieldId to the upper bound value as a ByteBuffer
 
 
-