Package dev.roanh.gmark.core
Class Configuration
java.lang.Object
dev.roanh.gmark.core.Configuration
A configuration contains all the information on the graphs
and workloads gMark needs to generate and is typically
read from a configuration XML file.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of the graph sizes to generate.Gets a list of all the predicates in the graph schema for this configuration.Gets the graph schema for this configuration.getTypes()
Gets a list of all the node types in the graph schema for this configuration.getWorkloadByID
(int id) Gets the workload with the given ID from this configuration.Gets all the workloads in this configuration.
-
Field Details
-
graphs
A list of sizes (node count) of the graphs to generate. -
schema
The schema of the graphs to generate and to use to generate queries. -
workloads
List of workloads to generate.
-
-
Constructor Details
-
Configuration
Constructs a new gMark configuration.- Parameters:
sizes
- The sizes (in nodes) of the graphs to generate.schema
- The schema to use to generate the graphs and queries.workloads
- The workloads to generate.
-
-
Method Details
-
getGraphSizes
Gets a list of the graph sizes to generate. The graph sizes returned are in the number of nodes.- Returns:
- The graph sizes to generate.
-
getPredicates
Gets a list of all the predicates in the graph schema for this configuration.- Returns:
- A list of all predicates for the schema in this configuration.
-
getTypes
Gets a list of all the node types in the graph schema for this configuration.- Returns:
- A list of all node types for the schema in this configuration.
-
getSchema
Gets the graph schema for this configuration.- Returns:
- The graph schema for this configuration.
-
getWorkloads
Gets all the workloads in this configuration.- Returns:
- All the workloads in this configuration.
-
getWorkloadByID
Gets the workload with the given ID from this configuration.- Parameters:
id
- The ID of the workload to get.- Returns:
- The workload with the given ID or
null
if it doesn't exist.
-