Package org.apache.iceberg
Interface FieldStats<T>
public interface FieldStats<T>
-
Method Summary
Modifier and TypeMethodDescriptionThe avg value size in memory (uncompressed) in bytes for variable-length types (string, binary, variant, geometry, geography)copy()Returns a copy of thisFieldStats.intfieldId()The field ID of the statisticbooleanWhether a NaN value count is tracked for this field.booleanWhether a null value count is tracked for this field.booleanWhether a value count is tracked for this field.The lower boundlongThe total NaN value count, defined only whenhasNanValueCount().longThe total null value count, defined only whenhasNullValueCount().booleanWhetherlowerBound()andupperBound()are equal to the min and max values for the column.type()Struct type describing the stats tracked for the field identified byfieldId().The upper boundlongThe total value count, including null and NaN, defined only whenhasValueCount().
-
Method Details
-
fieldId
int fieldId()The field ID of the statistic -
type
Types.StructType type()Struct type describing the stats tracked for the field identified byfieldId().Note: This type may be a projection of the stats stored in manifest files.
-
lowerBound
T lowerBound()The lower bound -
upperBound
T upperBound()The upper bound -
tightBounds
boolean tightBounds()WhetherlowerBound()andupperBound()are equal to the min and max values for the column. -
hasValueCount
boolean hasValueCount()Whether a value count is tracked for this field. -
valueCount
long valueCount()The total value count, including null and NaN, defined only whenhasValueCount(). -
hasNullValueCount
boolean hasNullValueCount()Whether a null value count is tracked for this field. -
nullValueCount
long nullValueCount()The total null value count, defined only whenhasNullValueCount(). -
hasNanValueCount
boolean hasNanValueCount()Whether a NaN value count is tracked for this field. -
nanValueCount
long nanValueCount()The total NaN value count, defined only whenhasNanValueCount(). -
avgValueSizeInBytes
Integer avgValueSizeInBytes()The avg value size in memory (uncompressed) in bytes for variable-length types (string, binary, variant, geometry, geography) -
copy
FieldStats<T> copy()Returns a copy of thisFieldStats.
-