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 SummaryConstructorsConstructorDescriptionFieldMetrics(int id, long valueCount, long nullValueCount) FieldMetrics(int id, long valueCount, long nullValueCount, long nanValueCount) FieldMetrics(int id, long valueCount, long nullValueCount, long nanValueCount, T lowerBound, T upperBound) FieldMetrics(int id, long valueCount, long nullValueCount, long nanValueCount, T lowerBound, T upperBound, Type originalType) FieldMetrics(int id, long valueCount, long nullValueCount, T lowerBound, T upperBound) FieldMetrics(int id, long valueCount, long nullValueCount, T lowerBound, T upperBound, Type originalType) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns if the metrics has bounds (i.e.intid()Returns the id of the field that the metrics within this class are associated with.Returns the lower bound value of this field.longReturns the number of NaN values for this field.longReturns the number of null values for this field.Returns the original type of the upper/lower bound value of this field.Returns the upper bound value of this field.longReturns the number of all values, including nulls, NaN and repeated, for the given field.
- 
Constructor Details- 
FieldMetricspublic FieldMetrics(int id, long valueCount, long nullValueCount) 
- 
FieldMetrics
- 
FieldMetricspublic FieldMetrics(int id, long valueCount, long nullValueCount, long nanValueCount) 
- 
FieldMetrics
- 
FieldMetrics
- 
FieldMetrics
 
- 
- 
Method Details- 
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.
- 
lowerBoundReturns the lower bound value of this field.
- 
upperBoundReturns the upper bound value of this field.
- 
originalTypeReturns the original type of the upper/lower 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)
 
-