Class QueryPlanCapture
java.lang.Object
org.eclipse.rdf4j.benchmark.common.plan.QueryPlanCapture
Captures unoptimized/optimized/executed query explanations and persists snapshot artifacts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapture(QueryPlanCaptureContext context, Supplier<? extends TupleQuery> tupleQuerySupplier) captureAndWrite(QueryPlanCaptureContext context, Supplier<? extends TupleQuery> tupleQuerySupplier) extractDebugMetrics(String explanationJson) findByUnoptimizedFingerprint(Path directory, String unoptimizedFingerprint) static booleanreadSnapshot(Path inputFile) static voidstatic PathvoidwriteSnapshot(Path outputFile, QueryPlanSnapshot snapshot)
-
Field Details
-
FORMAT_VERSION
- See Also:
-
DEFAULT_OUTPUT_DIRECTORY
- See Also:
-
ENABLE_CAPTURE_PROPERTY
- See Also:
-
FEATURE_PROPERTIES_PROPERTY
- See Also:
-
FEATURE_PROPERTY_PREFIX_PROPERTY
- See Also:
-
GIT_COMMIT_PROPERTY
- See Also:
-
GIT_BRANCH_PROPERTY
- See Also:
-
-
Constructor Details
-
QueryPlanCapture
public QueryPlanCapture()
-
-
Method Details
-
isCaptureEnabled
public static boolean isCaptureEnabled() -
resolveOutputDirectory
-
metadataFromSystemProperties
-
registerConfiguredFeatureFlags
-
capture
public QueryPlanSnapshot capture(QueryPlanCaptureContext context, Supplier<? extends TupleQuery> tupleQuerySupplier) -
captureAndWrite
public Path captureAndWrite(QueryPlanCaptureContext context, Supplier<? extends TupleQuery> tupleQuerySupplier) throws IOException - Throws:
IOException
-
writeSnapshot
- Throws:
IOException
-
readSnapshot
- Throws:
IOException
-
findByUnoptimizedFingerprint
public Optional<Path> findByUnoptimizedFingerprint(Path directory, String unoptimizedFingerprint) throws IOException - Throws:
IOException
-
extractDebugMetrics
-