Record Class SketchBasedJoinEstimator.PatternFilterSampleEstimate
java.lang.Object
java.lang.Record
org.eclipse.rdf4j.query.algebra.evaluation.sketch.SketchBasedJoinEstimator.PatternFilterSampleEstimate
- Enclosing class:
SketchBasedJoinEstimator
public static record SketchBasedJoinEstimator.PatternFilterSampleEstimate(double passRatio, long sampleSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPatternFilterSampleEstimate(double passRatio, long sampleSize) Creates an instance of aPatternFilterSampleEstimaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thepassRatiorecord component.longReturns the value of thesampleSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PatternFilterSampleEstimate
public PatternFilterSampleEstimate(double passRatio, long sampleSize) Creates an instance of aPatternFilterSampleEstimaterecord class.- Parameters:
passRatio- the value for thepassRatiorecord componentsampleSize- the value for thesampleSizerecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
passRatio
public double passRatio()Returns the value of thepassRatiorecord component.- Returns:
- the value of the
passRatiorecord component
-
sampleSize
public long sampleSize()Returns the value of thesampleSizerecord component.- Returns:
- the value of the
sampleSizerecord component
-