Package dev.roanh.gmark.util
Class SelectivityType
java.lang.Object
dev.roanh.gmark.util.SelectivityType
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 Summary
Modifier and TypeFieldDescriptionprivate final SelectivityClass
The selectivity class associated with this selectivity type.private final Type
The node type associated with this selectivity type. -
Constructor Summary
ConstructorDescriptionSelectivityType
(Type type, SelectivityClass sel) Constructs a new selectivity type with the given type and selectivity class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the selectivity class for this selectivity type.getType()
Gets the node type for this selectivity type.int
Gets the ID of the type in this selectivity type.int
hashCode()
static final SelectivityType
of
(Type type, SelectivityClass sel) Constructs a new selectivity type from the given type and selectivity class.toString()
-
Field Details
-
type
The node type associated with this selectivity type. -
selectivity
The selectivity class associated with this selectivity type.
-
-
Constructor Details
-
SelectivityType
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
Gets the node type for this selectivity type.- Returns:
- The node type for this selectivity type.
-
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
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
-
hashCode
public int hashCode() -
toString
-