Record Class QueryOptimizer.TableStatistics
java.lang.Object
java.lang.Record
com.loomcache.server.query.QueryOptimizer.TableStatistics
- Enclosing class:
QueryOptimizer
public static record QueryOptimizer.TableStatistics(long rowCount, Map<String,Integer> distinctValues, Map<String, Comparable<?>> minValues, Map<String, Comparable<?>> maxValues)
extends Record
Table statistics for cost estimation.
-
Constructor Summary
ConstructorsConstructorDescriptionTableStatistics(long rowCount, Map<String, Integer> distinctValues, Map<String, Comparable<?>> minValues, Map<String, Comparable<?>> maxValues) Creates an instance of aTableStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistinctValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<String, Comparable<?>> Returns the value of themaxValuesrecord component.Map<String, Comparable<?>> Returns the value of theminValuesrecord component.longrowCount()Returns the value of therowCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableStatistics
public TableStatistics(long rowCount, Map<String, Integer> distinctValues, Map<String, Comparable<?>> minValues, Map<String, Comparable<?>> maxValues) Creates an instance of aTableStatisticsrecord class.- Parameters:
rowCount- the value for therowCountrecord componentdistinctValues- the value for thedistinctValuesrecord componentminValues- the value for theminValuesrecord componentmaxValues- the value for themaxValuesrecord component
-
-
Method Details
-
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. -
rowCount
public long rowCount()Returns the value of therowCountrecord component.- Returns:
- the value of the
rowCountrecord component
-
distinctValues
-
minValues
Returns the value of theminValuesrecord component.- Returns:
- the value of the
minValuesrecord component
-
maxValues
Returns the value of themaxValuesrecord component.- Returns:
- the value of the
maxValuesrecord component
-