Package dev.roanh.gmark.query.shape
Class CycleGenerator
java.lang.Object
dev.roanh.gmark.query.shape.ShapeGenerator
dev.roanh.gmark.query.shape.CycleGenerator
A query generator that generates queries with the
conjuncts arranged in a cycle shape. Specifically,
the conjuncts form a chain with the last conjunct
target variable being the same as the source variable
of the first conjunct.
-
Field Summary
Fields inherited from class dev.roanh.gmark.query.shape.ShapeGenerator
conjGen, gSel, workload
-
Constructor Summary
ConstructorDescriptionCycleGenerator
(Workload workload) Constructs a new generator for cycle shaped queries. -
Method Summary
Modifier and TypeMethodDescriptionGenerates a new query with a specific shape following the provided workload specification.Methods inherited from class dev.roanh.gmark.query.shape.ShapeGenerator
createVariables, randomArity, randomConjunctNumber, randomSelectivity
-
Constructor Details
-
CycleGenerator
Constructs a new generator for cycle shaped queries.- Parameters:
workload
- The workload specification.
-
-
Method Details
-
generateQuery
Description copied from class:ShapeGenerator
Generates a new query with a specific shape following the provided workload specification.- Specified by:
generateQuery
in classShapeGenerator
- Returns:
- The generated query.
- Throws:
GenerationException
- When generating the query failed for some reason.
-