Record Class AttributeStatistics

java.lang.Object
java.lang.Record
org.impulsegraph.api.stats.AttributeStatistics

public record AttributeStatistics(String name, long minIntVal, long maxIntVal, double minFloatVal, double maxFloatVal, String minStrVal, String maxStrVal, int nullCount, int distinctCount, AttributeStatistics.Monotonicity monotonicity, boolean hasNulls) extends Record
Immutable statistics and zone map metadata for a single node or edge attribute column.
  • Constructor Details

    • AttributeStatistics

      public AttributeStatistics(String name, long minIntVal, long maxIntVal, double minFloatVal, double maxFloatVal, String minStrVal, String maxStrVal, int nullCount, int distinctCount, AttributeStatistics.Monotonicity monotonicity, boolean hasNulls)
      Creates an instance of a AttributeStatistics record class.
      Parameters:
      name - the value for the name record component
      minIntVal - the value for the minIntVal record component
      maxIntVal - the value for the maxIntVal record component
      minFloatVal - the value for the minFloatVal record component
      maxFloatVal - the value for the maxFloatVal record component
      minStrVal - the value for the minStrVal record component
      maxStrVal - the value for the maxStrVal record component
      nullCount - the value for the nullCount record component
      distinctCount - the value for the distinctCount record component
      monotonicity - the value for the monotonicity record component
      hasNulls - the value for the hasNulls record component
  • Method Details

    • empty

      public static AttributeStatistics empty(String name)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • minIntVal

      public long minIntVal()
      Returns the value of the minIntVal record component.
      Returns:
      the value of the minIntVal record component
    • maxIntVal

      public long maxIntVal()
      Returns the value of the maxIntVal record component.
      Returns:
      the value of the maxIntVal record component
    • minFloatVal

      public double minFloatVal()
      Returns the value of the minFloatVal record component.
      Returns:
      the value of the minFloatVal record component
    • maxFloatVal

      public double maxFloatVal()
      Returns the value of the maxFloatVal record component.
      Returns:
      the value of the maxFloatVal record component
    • minStrVal

      public String minStrVal()
      Returns the value of the minStrVal record component.
      Returns:
      the value of the minStrVal record component
    • maxStrVal

      public String maxStrVal()
      Returns the value of the maxStrVal record component.
      Returns:
      the value of the maxStrVal record component
    • nullCount

      public int nullCount()
      Returns the value of the nullCount record component.
      Returns:
      the value of the nullCount record component
    • distinctCount

      public int distinctCount()
      Returns the value of the distinctCount record component.
      Returns:
      the value of the distinctCount record component
    • monotonicity

      public AttributeStatistics.Monotonicity monotonicity()
      Returns the value of the monotonicity record component.
      Returns:
      the value of the monotonicity record component
    • hasNulls

      public boolean hasNulls()
      Returns the value of the hasNulls record component.
      Returns:
      the value of the hasNulls record component