Package dev.roanh.gmark.query.shape
Class StarChainGenerator
java.lang.Object
dev.roanh.gmark.query.shape.ShapeGenerator
dev.roanh.gmark.query.shape.StarChainGenerator
A query generator that generates queries with the
conjuncts arranged in a star-chain shape. Specifically,
there is one long chain of conjuncts and each end point
has a number of conjuncts attached to it to form a star.
-
Field Summary
Fields inherited from class dev.roanh.gmark.query.shape.ShapeGenerator
conjGen, gSel, workload
-
Constructor Summary
ConstructorDescriptionStarChainGenerator
(Workload workload) Constructs a new generator for star-chain 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
-
StarChainGenerator
Constructs a new generator for star-chain 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.
-