Package org.apache.iceberg
Class Metrics
java.lang.Object
org.apache.iceberg.Metrics
- All Implemented Interfaces:
Serializable
Iceberg file format metrics.
- See Also:
-
Constructor Summary
ConstructorDescriptionMetrics()
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) -
Method Summary
Modifier 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
-
Metrics
public Metrics() -
Metrics
-
Metrics
-
-
Method Details
-
recordCount
Get the number of records (rows) in file.- Returns:
- the count of records (rows) in the file as a long
-
columnSizes
Get the number of bytes for all fields in a file.- Returns:
- a Map of fieldId to the size in bytes
-
valueCounts
Get 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
-
nullValueCounts
Get the number of null values for all fields in a file.- Returns:
- a Map of fieldId to the number of nulls
-
nanValueCounts
Get 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
-
lowerBounds
Get the non-null lower bound values for all fields in a file.To convert the
ByteBuffer
back 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:
-
upperBounds
Get 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
-