Enum Class Selectivity

java.lang.Object
java.lang.Enum<Selectivity>
dev.roanh.gmark.core.Selectivity
All Implemented Interfaces:
IDable, Serializable, Comparable<Selectivity>, Constable

public enum Selectivity extends Enum<Selectivity> implements IDable
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 Constants
    Enum Constant
    Description
    This 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

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The numerical ID of this selectivity.
    private final String
    The name of this selectivity (as used in configuration files).
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Selectivity(int id, String name)
    Constructs a new selectivity with the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    static final Selectivity
    Gets the selectivity identified by the given name.
    int
    Gets the unique ID for this object.
    Gets the name of this selectivity.
     
    Returns the enum constant of this class with the specified name.
    static Selectivity[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CONSTANT

      public static final Selectivity 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

      public static final Selectivity 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

      public static final Selectivity 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 id
      The numerical ID of this selectivity.
    • name

      private final String name
      The name of this selectivity (as used in configuration files).
  • Constructor Details

    • Selectivity

      private Selectivity(int id, String name)
      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

      public static Selectivity[] 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

      public static Selectivity valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String 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

      public String toString()
      Overrides:
      toString in class Enum<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.
      Specified by:
      getID in interface IDable
      Returns:
      The unique ID for this object.
    • getByName

      public static final Selectivity getByName(String name)
      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.