Class FieldMetrics<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      FieldMetrics​(int id, long valueCount, long nullValueCount, long nanValueCount, T lowerBound, T upperBound)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasBounds()
      Returns if the metrics has bounds (i.e.
      int id()
      Returns the id of the field that the metrics within this class are associated with.
      T lowerBound()
      Returns the lower bound value of this field.
      long nanValueCount()
      Returns the number of NaN values for this field.
      long nullValueCount()
      Returns the number of null values for this field.
      T upperBound()
      Returns the upper bound value of this field.
      long valueCount()
      Returns the number of all values, including nulls, NaN and repeated, for the given field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FieldMetrics

        public FieldMetrics​(int id,
                            long valueCount,
                            long nullValueCount,
                            long nanValueCount,
                            T lowerBound,
                            T upperBound)
    • Method Detail

      • 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

        public T lowerBound()
        Returns the lower bound value of this field.
      • upperBound

        public T 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)