Package dev.roanh.gmark.query.shape
Class StarGenerator
java.lang.Object
dev.roanh.gmark.query.shape.ShapeGenerator
dev.roanh.gmark.query.shape.StarGenerator
A query generator that generates queries with the
conjuncts arranged in a star shape. Specifically,
all the conjuncts share the same source variable.
-
Field Summary
Fields inherited from class dev.roanh.gmark.query.shape.ShapeGenerator
conjGen, gSel, workload
-
Constructor Summary
ConstructorDescriptionStarGenerator
(Workload workload) Constructs a new generator for star 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
-
StarGenerator
Constructs a new generator for star 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.
-