Package dev.roanh.gmark.core
Enum Class Selectivity
- All Implemented Interfaces:
IDable
,Serializable
,Comparable<Selectivity>
,Constable
Enum with all possible selectivity values. The
selectivity value shows how the number of results
returned by a query grows when the size of the graph grows.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis means a query returns about the same number of results regardless of how large the graph becomes.The most common selectivity value.This selectivity value indicates that the number of results selected by a query grows much faster than the size of the graph itself. -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
Selectivity
(int id, String name) Constructs a new selectivity with the given name. -
Method Summary
Modifier and TypeMethodDescriptionstatic final Selectivity
Gets the selectivity identified by the given name.int
getID()
Gets the unique ID for this object.getName()
Gets the name of this selectivity.toString()
static Selectivity
Returns the enum constant of this class with the specified name.static Selectivity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTANT
This means a query returns about the same number of results regardless of how large the graph becomes. Typically this is seen for queries that select nodes that are present in a fixed quantity in the graph. -
LINEAR
The most common selectivity value. This indicates queries that select more results when the graph grows in size and the number of results select grows in a linear fashion with the graph size. -
QUADRATIC
This selectivity value indicates that the number of results selected by a query grows much faster than the size of the graph itself. This selectivity value is typically seen for queries that perform a Cartesian product.
-
-
Field Details
-
id
private final int idThe numerical ID of this selectivity. -
name
The name of this selectivity (as used in configuration files).
-
-
Constructor Details
-
Selectivity
Constructs a new selectivity with the given name.- Parameters:
id
- The numerical ID of this selectivity (as used in workload XMLs).name
- The selectivity name (as used in configuration files).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Gets the name of this selectivity. This is the same name that is also used for configuration files.- Returns:
- The name of this selectivity.
-
toString
- Overrides:
toString
in classEnum<Selectivity>
-
getID
public int getID()Description copied from interface:IDable
Gets the unique ID for this object. This ID uniquely identifies all objects of this type. -
getByName
Gets the selectivity identified by the given name. This name is also used for configuration files.- Parameters:
name
- The name of the selectivity to get.- Returns:
- The selectivity with the given name or
null
if no selectivity with the given name was found.
-