Package org.apache.iceberg
Class FieldMetrics<T>
java.lang.Object
org.apache.iceberg.FieldMetrics<T>
- Direct Known Subclasses:
DoubleFieldMetrics
,FloatFieldMetrics
Iceberg internally tracked field level metrics.
-
Constructor Summary
ConstructorDescriptionFieldMetrics
(int id, long valueCount, long nullValueCount, long nanValueCount, T lowerBound, T upperBound) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns if the metrics has bounds (i.e. there is at least non-null value for this field)int
id()
Returns the id of the field that the metrics within this class are associated with.Returns the lower bound value of this field.long
Returns the number of NaN values for this field.long
Returns the number of null values for this field.Returns the upper bound value of this field.long
Returns the number of all values, including nulls, NaN and repeated, for the given field.
-
Constructor Details
-
FieldMetrics
-
-
Method Details
-
id
public int id()Returns the id of the field that the metrics within this class are associated with. -
valueCount
public long valueCount()Returns the number of all values, including nulls, NaN and repeated, for the given field. -
nullValueCount
public long nullValueCount()Returns the number of null values for this field. -
nanValueCount
public long nanValueCount()Returns the number of NaN values for this field. Will only be non-0 if this field is a double or float field. -
lowerBound
Returns the lower bound value of this field. -
upperBound
Returns the upper bound value of this field. -
hasBounds
public boolean hasBounds()Returns if the metrics has bounds (i.e. there is at least non-null value for this field)
-