SparkseePython  6.0.2
Public Member Functions | Static Public Attributes | List of all members
sparksee.Type Class Reference

Type data class. More...

Public Member Functions

def get_object_type (self)
 Gets the object type. More...
 
def get_id (self)
 Gets the Sparksee type identifier. More...
 
def get_restricted_from (self)
 Gets the tail or source type identifier for restricted edge types. More...
 
def get_num_objects (self)
 Gets the number of objects belonging to the type. More...
 
def get_are_neighbors_indexed (self)
 Gets if this is an edge type with neighbors index. More...
 
def get_restricted_to (self)
 Gets the head or target type identifier for restricted edge types. More...
 
def get_is_restricted (self)
 Gets if this is a restricted edge type. More...
 
def get_name (self)
 Gets the unique type name. More...
 
def get_is_directed (self)
 Gets if this is a directed edge type. More...
 

Static Public Attributes

int INVALID_TYPE = 0
 Invalid type identifier.
 
int NODES_TYPE = 2
 Identifier for all nodeType attributes.
 
int GLOBAL_TYPE = 1
 Global type identifier.
 
int EDGES_TYPE = 3
 Identifier for all edgeType attributes.
 

Detailed Description

Type data class.

It contains information about a node or edge type.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

def sparksee.Type.get_are_neighbors_indexed (   self)

Gets if this is an edge type with neighbors index.

Returns
TRUE for edges types with neighbors index, FALSE otherwise.
def sparksee.Type.get_id (   self)

Gets the Sparksee type identifier.

Returns
The Sparksee type identifier.
def sparksee.Type.get_is_directed (   self)

Gets if this is a directed edge type.

Returns
TRUE for directed edge types, FALSE otherwise.
def sparksee.Type.get_is_restricted (   self)

Gets if this is a restricted edge type.

Returns
TRUE for restricted edge types, FALSE otherwise.
def sparksee.Type.get_name (   self)

Gets the unique type name.

Returns
The unique type name.
def sparksee.Type.get_num_objects (   self)

Gets the number of objects belonging to the type.

Returns
The number of objects belonging to the type.
def sparksee.Type.get_object_type (   self)

Gets the object type.

Returns
The object type.
def sparksee.Type.get_restricted_from (   self)

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.
def sparksee.Type.get_restricted_to (   self)

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.