Record Class LmdbPageCardinalityEstimator.Estimate
java.lang.Object
java.lang.Record
org.eclipse.rdf4j.sail.lmdb.estimate.LmdbPageCardinalityEstimator.Estimate
- Record Components:
entries- rounded point estimate, clamped to the hard boundsexact- whether the point estimate is known exactlyexhaustive- whether the selected structural plan was completely measuredhardLowerBound- records proven to matchhardUpperBound- greatest count still permitted by exact metadata and measurementseffectiveSampleSize- concentration-adjusted number of independent leaf observationseffectiveSampleFraction- effective sample size divided by the number of probessampledMassFraction- fraction of the estimate contributed by sampled rather than exact massrelativeStandardError- conservative relative sampling error estimatedisagreement- largest multiplicative disagreement among independent evidence streamsphysicalPilotDisagreement- physical-range estimate versus the residual pilot's range estimatepilotFinalDisagreement- residual pilot estimate versus the final residual estimatedirectRatioDisagreement- directly weighted matches versus physical mass times sampled match ratiolowEffectiveSample- whether repeated or concentrated probes weakened effective coveragedisagreementDetected- whether any evidence streams exceeded the disagreement thresholdadditionalEvidenceUsed- whether a conditional confirmation stream was readsecondaryEvidenceRecommended- whether a separate index layout should corroborate this resultphysicalProbeBudgetUsed- requested probes for physical range massresidualPilotProbeBudgetUsed- requested probes for the residual pilotresidualFinalProbeBudgetUsed- requested probes for the selected residual budgetconditionalProbeBudgetUsed- requested probes for conditional confirmations
- Enclosing class:
LmdbPageCardinalityEstimator
public static record LmdbPageCardinalityEstimator.Estimate(long entries, boolean exact, boolean exhaustive, long hardLowerBound, long hardUpperBound, double effectiveSampleSize, double effectiveSampleFraction, double sampledMassFraction, double relativeStandardError, double disagreement, double physicalPilotDisagreement, double pilotFinalDisagreement, double directRatioDisagreement, boolean lowEffectiveSample, boolean disagreementDetected, boolean additionalEvidenceUsed, boolean secondaryEvidenceRecommended, int physicalProbeBudgetUsed, int residualPilotProbeBudgetUsed, int residualFinalProbeBudgetUsed, int conditionalProbeBudgetUsed)
extends Record
Estimate and reliability evidence used by
TripleStore to decide whether another physical index is worth
reading.-
Constructor Summary
ConstructorsConstructorDescriptionEstimate(long entries, boolean exact, boolean exhaustive, long hardLowerBound, long hardUpperBound, double effectiveSampleSize, double effectiveSampleFraction, double sampledMassFraction, double relativeStandardError, double disagreement, double physicalPilotDisagreement, double pilotFinalDisagreement, double directRatioDisagreement, boolean lowEffectiveSample, boolean disagreementDetected, boolean additionalEvidenceUsed, boolean secondaryEvidenceRecommended, int physicalProbeBudgetUsed, int residualPilotProbeBudgetUsed, int residualFinalProbeBudgetUsed, int conditionalProbeBudgetUsed) Creates an instance of aEstimaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theadditionalEvidenceUsedrecord component.intReturns the value of theconditionalProbeBudgetUsedrecord component.doubleReturns the value of thedirectRatioDisagreementrecord component.doubleReturns the value of thedisagreementrecord component.booleanReturns the value of thedisagreementDetectedrecord component.doubleReturns the value of theeffectiveSampleFractionrecord component.doubleReturns the value of theeffectiveSampleSizerecord component.longentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexact()Returns the value of theexactrecord component.booleanReturns the value of theexhaustiverecord component.longReturns the value of thehardLowerBoundrecord component.longReturns the value of thehardUpperBoundrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelowEffectiveSamplerecord component.doubleReturns the value of thephysicalPilotDisagreementrecord component.intReturns the value of thephysicalProbeBudgetUsedrecord component.doubleReturns the value of thepilotFinalDisagreementrecord component.doubleReturns the value of therelativeStandardErrorrecord component.intReturns the value of theresidualFinalProbeBudgetUsedrecord component.intReturns the value of theresidualPilotProbeBudgetUsedrecord component.doubleReturns the value of thesampledMassFractionrecord component.booleanReturns the value of thesecondaryEvidenceRecommendedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Estimate
public Estimate(long entries, boolean exact, boolean exhaustive, long hardLowerBound, long hardUpperBound, double effectiveSampleSize, double effectiveSampleFraction, double sampledMassFraction, double relativeStandardError, double disagreement, double physicalPilotDisagreement, double pilotFinalDisagreement, double directRatioDisagreement, boolean lowEffectiveSample, boolean disagreementDetected, boolean additionalEvidenceUsed, boolean secondaryEvidenceRecommended, int physicalProbeBudgetUsed, int residualPilotProbeBudgetUsed, int residualFinalProbeBudgetUsed, int conditionalProbeBudgetUsed) Creates an instance of aEstimaterecord class.- Parameters:
entries- the value for theentriesrecord componentexact- the value for theexactrecord componentexhaustive- the value for theexhaustiverecord componenthardLowerBound- the value for thehardLowerBoundrecord componenthardUpperBound- the value for thehardUpperBoundrecord componenteffectiveSampleSize- the value for theeffectiveSampleSizerecord componenteffectiveSampleFraction- the value for theeffectiveSampleFractionrecord componentsampledMassFraction- the value for thesampledMassFractionrecord componentrelativeStandardError- the value for therelativeStandardErrorrecord componentdisagreement- the value for thedisagreementrecord componentphysicalPilotDisagreement- the value for thephysicalPilotDisagreementrecord componentpilotFinalDisagreement- the value for thepilotFinalDisagreementrecord componentdirectRatioDisagreement- the value for thedirectRatioDisagreementrecord componentlowEffectiveSample- the value for thelowEffectiveSamplerecord componentdisagreementDetected- the value for thedisagreementDetectedrecord componentadditionalEvidenceUsed- the value for theadditionalEvidenceUsedrecord componentsecondaryEvidenceRecommended- the value for thesecondaryEvidenceRecommendedrecord componentphysicalProbeBudgetUsed- the value for thephysicalProbeBudgetUsedrecord componentresidualPilotProbeBudgetUsed- the value for theresidualPilotProbeBudgetUsedrecord componentresidualFinalProbeBudgetUsed- the value for theresidualFinalProbeBudgetUsedrecord componentconditionalProbeBudgetUsed- the value for theconditionalProbeBudgetUsedrecord 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. -
entries
-
exact
-
exhaustive
public boolean exhaustive()Returns the value of theexhaustiverecord component.- Returns:
- the value of the
exhaustiverecord component
-
hardLowerBound
public long hardLowerBound()Returns the value of thehardLowerBoundrecord component.- Returns:
- the value of the
hardLowerBoundrecord component
-
hardUpperBound
public long hardUpperBound()Returns the value of thehardUpperBoundrecord component.- Returns:
- the value of the
hardUpperBoundrecord component
-
effectiveSampleSize
public double effectiveSampleSize()Returns the value of theeffectiveSampleSizerecord component.- Returns:
- the value of the
effectiveSampleSizerecord component
-
effectiveSampleFraction
public double effectiveSampleFraction()Returns the value of theeffectiveSampleFractionrecord component.- Returns:
- the value of the
effectiveSampleFractionrecord component
-
sampledMassFraction
public double sampledMassFraction()Returns the value of thesampledMassFractionrecord component.- Returns:
- the value of the
sampledMassFractionrecord component
-
relativeStandardError
public double relativeStandardError()Returns the value of therelativeStandardErrorrecord component.- Returns:
- the value of the
relativeStandardErrorrecord component
-
disagreement
public double disagreement()Returns the value of thedisagreementrecord component.- Returns:
- the value of the
disagreementrecord component
-
physicalPilotDisagreement
public double physicalPilotDisagreement()Returns the value of thephysicalPilotDisagreementrecord component.- Returns:
- the value of the
physicalPilotDisagreementrecord component
-
pilotFinalDisagreement
public double pilotFinalDisagreement()Returns the value of thepilotFinalDisagreementrecord component.- Returns:
- the value of the
pilotFinalDisagreementrecord component
-
directRatioDisagreement
public double directRatioDisagreement()Returns the value of thedirectRatioDisagreementrecord component.- Returns:
- the value of the
directRatioDisagreementrecord component
-
lowEffectiveSample
public boolean lowEffectiveSample()Returns the value of thelowEffectiveSamplerecord component.- Returns:
- the value of the
lowEffectiveSamplerecord component
-
disagreementDetected
public boolean disagreementDetected()Returns the value of thedisagreementDetectedrecord component.- Returns:
- the value of the
disagreementDetectedrecord component
-
additionalEvidenceUsed
public boolean additionalEvidenceUsed()Returns the value of theadditionalEvidenceUsedrecord component.- Returns:
- the value of the
additionalEvidenceUsedrecord component
-
secondaryEvidenceRecommended
public boolean secondaryEvidenceRecommended()Returns the value of thesecondaryEvidenceRecommendedrecord component.- Returns:
- the value of the
secondaryEvidenceRecommendedrecord component
-
physicalProbeBudgetUsed
public int physicalProbeBudgetUsed()Returns the value of thephysicalProbeBudgetUsedrecord component.- Returns:
- the value of the
physicalProbeBudgetUsedrecord component
-
residualPilotProbeBudgetUsed
public int residualPilotProbeBudgetUsed()Returns the value of theresidualPilotProbeBudgetUsedrecord component.- Returns:
- the value of the
residualPilotProbeBudgetUsedrecord component
-
residualFinalProbeBudgetUsed
public int residualFinalProbeBudgetUsed()Returns the value of theresidualFinalProbeBudgetUsedrecord component.- Returns:
- the value of the
residualFinalProbeBudgetUsedrecord component
-
conditionalProbeBudgetUsed
public int conditionalProbeBudgetUsed()Returns the value of theconditionalProbeBudgetUsedrecord component.- Returns:
- the value of the
conditionalProbeBudgetUsedrecord component
-