Package org.apache.iceberg
Class FieldMetrics<T>
- java.lang.Object
- 
- org.apache.iceberg.FieldMetrics<T>
 
- 
- Direct Known Subclasses:
- DoubleFieldMetrics,- FloatFieldMetrics
 
 public class FieldMetrics<T> extends java.lang.ObjectIceberg internally tracked field level metrics.
- 
- 
Constructor SummaryConstructors Constructor Description FieldMetrics(int id, long valueCount, long nullValueCount, long nanValueCount, T lowerBound, T upperBound)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasBounds()Returns if the metrics has bounds (i.e.intid()Returns the id of the field that the metrics within this class are associated with.TlowerBound()Returns the lower bound value of this field.longnanValueCount()Returns the number of NaN values for this field.longnullValueCount()Returns the number of null values for this field.TupperBound()Returns the upper bound value of this field.longvalueCount()Returns the number of all values, including nulls, NaN and repeated, for the given field.
 
- 
- 
- 
Method Detail- 
idpublic int id() Returns the id of the field that the metrics within this class are associated with.
 - 
valueCountpublic long valueCount() Returns the number of all values, including nulls, NaN and repeated, for the given field.
 - 
nullValueCountpublic long nullValueCount() Returns the number of null values for this field.
 - 
nanValueCountpublic 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.
 - 
lowerBoundpublic T lowerBound() Returns the lower bound value of this field.
 - 
upperBoundpublic T upperBound() Returns the upper bound value of this field.
 - 
hasBoundspublic boolean hasBounds() Returns if the metrics has bounds (i.e. there is at least non-null value for this field)
 
- 
 
-