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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAttributeStatistics(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 aAttributeStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedistinctCountrecord component.static AttributeStatisticsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasNulls()Returns the value of thehasNullsrecord component.doubleReturns the value of themaxFloatValrecord component.longReturns the value of themaxIntValrecord component.Returns the value of themaxStrValrecord component.doubleReturns the value of theminFloatValrecord component.longReturns the value of theminIntValrecord component.Returns the value of theminStrValrecord component.Returns the value of themonotonicityrecord component.name()Returns the value of thenamerecord component.intReturns the value of thenullCountrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aAttributeStatisticsrecord class.- Parameters:
name- the value for thenamerecord componentminIntVal- the value for theminIntValrecord componentmaxIntVal- the value for themaxIntValrecord componentminFloatVal- the value for theminFloatValrecord componentmaxFloatVal- the value for themaxFloatValrecord componentminStrVal- the value for theminStrValrecord componentmaxStrVal- the value for themaxStrValrecord componentnullCount- the value for thenullCountrecord componentdistinctCount- the value for thedistinctCountrecord componentmonotonicity- the value for themonotonicityrecord componenthasNulls- the value for thehasNullsrecord component
-
-
Method Details
-
empty
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
minIntVal
public long minIntVal()Returns the value of theminIntValrecord component.- Returns:
- the value of the
minIntValrecord component
-
maxIntVal
public long maxIntVal()Returns the value of themaxIntValrecord component.- Returns:
- the value of the
maxIntValrecord component
-
minFloatVal
public double minFloatVal()Returns the value of theminFloatValrecord component.- Returns:
- the value of the
minFloatValrecord component
-
maxFloatVal
public double maxFloatVal()Returns the value of themaxFloatValrecord component.- Returns:
- the value of the
maxFloatValrecord component
-
minStrVal
Returns the value of theminStrValrecord component.- Returns:
- the value of the
minStrValrecord component
-
maxStrVal
Returns the value of themaxStrValrecord component.- Returns:
- the value of the
maxStrValrecord component
-
nullCount
public int nullCount()Returns the value of thenullCountrecord component.- Returns:
- the value of the
nullCountrecord component
-
distinctCount
public int distinctCount()Returns the value of thedistinctCountrecord component.- Returns:
- the value of the
distinctCountrecord component
-
monotonicity
Returns the value of themonotonicityrecord component.- Returns:
- the value of the
monotonicityrecord component
-
hasNulls
public boolean hasNulls()Returns the value of thehasNullsrecord component.- Returns:
- the value of the
hasNullsrecord component
-