Class Type
java.lang.Object
com.sparsity.sparksee.gdb.Type
Type data class.
It contains information about a node or edge type.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intIdentifier for all edgeType attributes.static intGlobal type identifier constant.static intInvalid type identifier constant.static intIdentifier for all nodeType attributes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets if this is an edge type with neighbors index.intgetId()Gets the Sparksee type identifier.booleanGets if this is a directed edge type.booleanGets if this is a restricted edge type.getName()Gets the unique type name.longGets the number of objects belonging to the type.Gets the object type.intGets the tail or source type identifier for restricted edge types.intGets the head or target type identifier for restricted edge types.
-
Field Details
-
InvalidType
public static int InvalidTypeInvalid type identifier constant. -
NodesType
public static int NodesTypeIdentifier for all nodeType attributes.Identifier for all nodeType attributes.
-
GlobalType
public static int GlobalTypeGlobal type identifier constant. -
EdgesType
public static int EdgesTypeIdentifier for all edgeType attributes.Identifier for all edgeType attributes.
-
-
Method Details
-
getObjectType
-
getId
public int getId()Gets the Sparksee type identifier.- Returns:
- The Sparksee type identifier.
-
getRestrictedFrom
public int getRestrictedFrom()Gets the tail or source type identifier for restricted edge types.- Returns:
- For restricted edge types, the tail or source type identifier, the Type InvalidType otherwise.
-
getNumObjects
public long getNumObjects()Gets the number of objects belonging to the type.- Returns:
- The number of objects belonging to the type.
-
getAreNeighborsIndexed
public boolean getAreNeighborsIndexed()Gets if this is an edge type with neighbors index.- Returns:
- TRUE for edges types with neighbors index, FALSE otherwise.
-
getRestrictedTo
public int getRestrictedTo()Gets the head or target type identifier for restricted edge types.- Returns:
- For restricted edge types, the head or target type identifier, the Type InvalidType otherwise.
-
getIsRestricted
public boolean getIsRestricted()Gets if this is a restricted edge type.- Returns:
- TRUE for restricted edge types, FALSE otherwise.
-
getName
-
getIsDirected
public boolean getIsDirected()Gets if this is a directed edge type.- Returns:
- TRUE for directed edge types, FALSE otherwise.
-