Class SelectivityType

java.lang.Object
dev.roanh.gmark.util.SelectivityType

public class SelectivityType extends Object
Selectivity types are a combination of a node type and selectivity class. They are the nodes in both the schema graph and selectivity graph.
See Also:
  • Field Details

    • type

      private final Type type
      The node type associated with this selectivity type.
    • selectivity

      private final SelectivityClass selectivity
      The selectivity class associated with this selectivity type.
  • Constructor Details

    • SelectivityType

      public SelectivityType(Type type, SelectivityClass sel)
      Constructs a new selectivity type with the given type and selectivity class.
      Parameters:
      type - The type for this selectivity type.
      sel - The selectivity class for this selectivity type.
  • Method Details

    • getType

      public Type getType()
      Gets the node type for this selectivity type.
      Returns:
      The node type for this selectivity type.
    • getSelectivity

      public SelectivityClass getSelectivity()
      Gets the selectivity class for this selectivity type.
      Returns:
      The selectivity class for this selectivity type.
    • getTypeID

      public int getTypeID()
      Gets the ID of the type in this selectivity type.
      Returns:
      The ID of the type in this selectivity type.
      See Also:
    • of

      public static final SelectivityType of(Type type, SelectivityClass sel)
      Constructs a new selectivity type from the given type and selectivity class.
      Parameters:
      type - The type.
      sel - The selectivity class.
      Returns:
      The newly constructed selectivity type.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object