Class SketchBasedJoinEstimator.Config
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.sketch.SketchBasedJoinEstimator.Config
- Enclosing class:
SketchBasedJoinEstimator
Configuration for
SketchBasedJoinEstimator.
Defaults use explicit S/P/O/C bucket counts and 64 sketch nominal entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Return a new config with all defaults.withChurnReaddThreshold(double fraction) Threshold for the share of sampled statements that were added, deleted, and re-added.withChurnRemovalRatioThreshold(double fraction) Threshold for the ratio of removed to added sampled statements.withChurnSampleMax(int max) Upper bound on sampling frequency expressed as a minimum spacing (in statements) between sampled churn events.withChurnSampleMin(int min) Minimum number of statements to sample before switching to probabilistic sampling.withChurnSamplePercent(double fraction) Fraction (0..1) of statements to sample after the minimum set is populated.withContextBucketCount(int n) withContextPairSketchesEnabled(boolean enabled) Label used when a statement hasnullcontext.withEstimateCacheSeconds(long seconds) Cache raw pattern estimates for up to the configured number of seconds.withIncrementalQueueEstimatedStatementBytes(long bytes) withIncrementalQueueIdleResetMillis(long millis) withIncrementalQueueInitialLimit(int limit) withMemoryMonitorCheckInterval(int interval) withMemoryMonitorEstimatedOperationBytes(long bytes) withNominalEntries(int n) Sketch nominal entries (must be ≥ 16).withObjectBucketCount(int n) withPredicateBucketCount(int n) withRefreshSleepMillis(long ms) Background refresh thread sleep between checks/rebuilds in milliseconds.withRoundJoinEstimates(boolean round) Round join size estimates to the nearest integer.withSubjectBucketCount(int n) withThrottleEveryN(long n) Sleep every N scanned statements during a full rebuild.withThrottleMillis(long ms) Milliseconds to sleep when throttling during a rebuild.withZeroIntersectionExactDistinctLimit(int limit) Exact distinct limit for zero-intersection rare-overlap fallback before downgrading to row sampling.withZeroIntersectionRowBudget(long rows) Maximum estimated scan-side rows allowed for zero-intersection fallback work.withZeroIntersectionSampleSize(int sampleSize) Reservoir size for sampled zero-intersection fallback when the exact distinct limit is exceeded.withZeroIntersectionSkewRatio(double ratio) Distinct skew ratio required to try a zero-intersection fallback when exact fallback is not eligible.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
defaults
Return a new config with all defaults. -
withNominalEntries
Sketch nominal entries (must be ≥ 16). -
withSubjectBucketCount
-
withPredicateBucketCount
-
withObjectBucketCount
-
withContextBucketCount
-
withContextPairSketchesEnabled
-
withoutContextPairSketches
-
withThrottleEveryN
Sleep every N scanned statements during a full rebuild. -
withThrottleMillis
Milliseconds to sleep when throttling during a rebuild. -
withRefreshSleepMillis
Background refresh thread sleep between checks/rebuilds in milliseconds. -
withEstimateCacheSeconds
Cache raw pattern estimates for up to the configured number of seconds. -
withZeroIntersectionExactDistinctLimit
Exact distinct limit for zero-intersection rare-overlap fallback before downgrading to row sampling. -
withZeroIntersectionSkewRatio
Distinct skew ratio required to try a zero-intersection fallback when exact fallback is not eligible. -
withZeroIntersectionRowBudget
Maximum estimated scan-side rows allowed for zero-intersection fallback work. -
withZeroIntersectionSampleSize
Reservoir size for sampled zero-intersection fallback when the exact distinct limit is exceeded. -
withDefaultContext
Label used when a statement hasnullcontext. -
withRoundJoinEstimates
Round join size estimates to the nearest integer. -
withChurnSampleMin
Minimum number of statements to sample before switching to probabilistic sampling. -
withChurnSamplePercent
Fraction (0..1) of statements to sample after the minimum set is populated. -
withChurnSampleMax
Upper bound on sampling frequency expressed as a minimum spacing (in statements) between sampled churn events. If the percentage-derived interval is smaller than this value, sampling is throttled to this spacing. -
withChurnReaddThreshold
Threshold for the share of sampled statements that were added, deleted, and re-added. -
withChurnRemovalRatioThreshold
Threshold for the ratio of removed to added sampled statements. -
withIncrementalQueueInitialLimit
-
withIncrementalQueueIdleResetMillis
-
withIncrementalQueueEstimatedStatementBytes
-
withMemoryMonitorCheckInterval
-
withMemoryMonitorEstimatedOperationBytes
-