Package dev.roanh.gmark.query.shape
Class ChainGenerator
java.lang.Object
dev.roanh.gmark.query.shape.ShapeGenerator
dev.roanh.gmark.query.shape.ChainGenerator
A query generator that generates queries with the
conjuncts arranged in a chain shape. Specifically,
the target variable of a conjunct is the same as
the source variable of the next conjunct in the chain.
-
Field Summary
Fields inherited from class dev.roanh.gmark.query.shape.ShapeGenerator
conjGen, gSel, workload
-
Constructor Summary
ConstructorDescriptionChainGenerator
(Workload workload) Constructs a new generator for 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
-
ChainGenerator
Constructs a new generator for 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.
-