public class Graph
extends java.lang.Object
Each Database has a Graph associated, which is the persistent graph which contains all data stored into the graph database and is retrieved from a Session.
Check out the 'API' and the 'SPARKSEE graph database' sections in the SPARKSEE User Manual for more details on the use of this class.
Modifier and Type | Method and Description |
---|---|
void |
backup(java.lang.String file)
Dumps all the data to a backup file.
|
long |
countEdges()
Gets the number of edges.
|
long |
countNodes()
Gets the number of nodes.
|
long |
degree(long oid,
int etype,
EdgesDirection dir)
Gets the number of edges from or to the given node OID and for the given edge type.
|
void |
drop(long oid)
Drops the given OID.
|
void |
drop(Objects objs)
Drops all the OIDs from the given collection.
|
void |
dumpData(java.lang.String file)
Dumps logical data to a file.
|
void |
dumpStorage(java.lang.String file)
Dumps internal storage data to a file.
|
Objects |
edges(int etype,
long tail,
long head)
Gets all the edges of the given type between two given nodes (tail and head).
|
void |
encryptedBackup(java.lang.String file,
java.lang.String keyInHex,
java.lang.String ivInHex)
Dumps all the data to a backup file.
|
Objects |
explode(long oid,
int etype,
EdgesDirection dir)
Selects all edges from or to the given node OID and for the given edge type.
|
Objects |
explode(Objects objs,
int etype,
EdgesDirection dir)
Selects all edges from or to each of the node OID in the given collection and for the given edge type.
|
void |
export(java.lang.String file,
ExportType type,
ExportManager em)
Exports the Graph.
|
int |
findAttribute(int type,
java.lang.String name)
Gets the Sparksee attribute identifier for the given type identifier and attribute name.
|
AttributeList |
findAttributes(int type)
Gets all existing Sparksee attribute identifiers for the given type identifier.
|
long |
findEdge(int etype,
long tail,
long head)
Gets any of the edges of the given type between two given nodes (tail and head).
|
TypeList |
findEdgeTypes()
Gets all existing Sparksee edge type identifiers.
|
TypeList |
findNodeTypes()
Gets all existing Sparksee node type identifiers.
|
long |
findObject(int attr,
Value value)
Finds one object having the given Value for the given attribute.
|
long |
findOrCreateEdge(int etype,
long tail,
long head)
Gets any of the edges of the specified type between two given nodes (tail and head).
|
long |
findOrCreateObject(int attr,
Value value)
Finds one object having the given Value for the attribute or it creates one does not exist any.
|
int |
findType(java.lang.String name)
Gets the Sparksee type identifier for the given type name.
|
TypeList |
findTypes()
Gets all existing Sparksee node and edge type identifiers.
|
ValueArray |
getArrayAttribute(long oid,
int attr)
Gets the ValueArray for the given array attribute and OID or NULL if it does not exist.
|
Attribute |
getAttribute(int attr)
Gets information about the given attribute.
|
Value |
getAttribute(long oid,
int attr)
Gets the Value for the given attribute and OID.
|
void |
getAttribute(long oid,
int attr,
Value value)
Gets the Value for the given attribute and OID.
|
long |
getAttributeIntervalCount(int attr,
Value lower,
boolean includeLower,
Value higher,
boolean includeHigher)
Gets how many objects have a value into the given range for the given attribute.
|
AttributeList |
getAttributes(long oid)
Gets all Sparksee attribute identifiers with a non-NULL value for the given Sparksee OID.
|
AttributeStatistics |
getAttributeStatistics(int attr,
boolean basic)
Gets statistics from the given attribute.
|
TextStream |
getAttributeText(long oid,
int attr)
Gets the read-only TextStream for the given text attribute and OID.
|
EdgeData |
getEdgeData(long edge)
Gets information about an edge.
|
long |
getEdgePeer(long edge,
long node)
Gets the other end for the given edge.
|
int |
getObjectType(long oid)
Gets the Sparksee node or edge type identifier for the given OID.
|
Session |
getSession() |
Type |
getType(int type)
Gets information about the given type.
|
Values |
getValues(int attr)
Gets the Value collection for the given attribute.
|
Objects |
heads(Objects edges)
Gets all the heads from the given edges collection.
|
void |
indexAttribute(int attr,
AttributeKind kind)
Updates the index of the given attribute.
|
void |
indexNeighbors(int edgeType,
boolean neighbors)
Creates or destroys the neighbors index of an edge type.
|
Objects |
neighbors(long oid,
int etype,
EdgesDirection dir)
Selects all neighbor nodes from or to the given node OID and for the given edge type.
|
Objects |
neighbors(Objects objs,
int etype,
EdgesDirection dir)
Selects all neighbor nodes from or to each of the node OID in the given collection and for the given edge type.
|
int |
newArrayAttribute(int type,
java.lang.String name,
DataType dt,
int size)
Creates a new array attribute.
|
int |
newAttribute(int type,
java.lang.String name,
DataType dt,
AttributeKind kind)
Creates a new attribute.
|
int |
newAttribute(int type,
java.lang.String name,
DataType dt,
AttributeKind kind,
Value defaultValue)
Creates a new attribute with a default value.
|
long |
newEdge(int type,
int tailAttr,
Value tailV,
int headAttr,
Value headV)
Creates a new edge instance.
|
long |
newEdge(int type,
long tail,
long head)
Creates a new edge instance.
|
int |
newEdgeType(java.lang.String name,
boolean directed,
boolean neighbors)
Creates a new edge type.
|
long |
newNode(int type)
Creates a new node instance.
|
int |
newNodeType(java.lang.String name)
Creates a new node type.
|
int |
newRestrictedEdgeType(java.lang.String name,
int tail,
int head,
boolean neighbors)
Creates a new restricted edge type.
|
int |
newSessionArrayAttribute(int type,
DataType dt,
int size)
Creates a new Session array attribute.
|
int |
newSessionAttribute(int type,
DataType dt,
AttributeKind kind)
Creates a new Session attribute.
|
int |
newSessionAttribute(int type,
DataType dt,
AttributeKind kind,
Value defaultValue)
Creates a new Session attribute with a default value.
|
void |
removeAttribute(int attr)
Removes the given attribute.
|
void |
removeType(int type)
Removes the given type.
|
void |
renameAttribute(int attr,
java.lang.String newName)
Renames an attribute.
|
void |
renameType(int type,
java.lang.String newName)
Renames a type.
|
void |
renameType(java.lang.String oldName,
java.lang.String newName)
Renames a type.
|
Objects |
select(int type)
Selects all OIDs belonging to the given type.
|
Objects |
select(int attr,
Condition cond,
Value value)
Selects all OIDs satisfying the given condition for the given attribute.
|
Objects |
select(int attr,
Condition cond,
Value value,
Objects restriction)
Selects all OIDs satisfying the given condition for the given attribute.
|
Objects |
select(int attr,
Condition cond,
Value lower,
Value higher)
Selects all OIDs satisfying the given condition for the given attribute.
|
Objects |
select(int attr,
Condition cond,
Value lower,
Value higher,
Objects restriction)
Selects all OIDs satisfying the given condition for the given attribute.
|
void |
setArrayAttribute(int attr,
Value value)
Sets all the values of the array of the given array attribute for all the objects of the types the attribute applies to.
|
ValueArray |
setArrayAttribute(long oid,
int attr,
Value value)
Sets all the elements of the ValueArray for the given array attribute and OID and returns it.
|
void |
setArrayAttributeVoid(long oid,
int attr,
Value value)
Sets all the elements of the ValueArray for the given array attribute and OID.
|
void |
setAttribute(int attr,
Value value)
Sets the value of the given attribute for all the objects of the types the attribute applies to.
|
void |
setAttribute(long oid,
int attr,
Value value)
Sets the Value for the given attribute and OID.
|
void |
setAttributeDefaultValue(int attr,
Value value)
Sets a default value for an attribute.
|
void |
setAttributeText(long oid,
int attr,
TextStream tstream)
Sets the writable TextStream for the given text attribute and OID.
|
Objects |
tails(Objects edges)
Gets all the tails from the given edges collection.
|
void |
tailsAndHeads(Objects edges,
Objects tails,
Objects heads)
Gets all the tails and heads from the given edges collection.
|
KeyValues |
topK(int attribute,
Condition operation,
Value lower,
Order order,
int k)
Gets a KeyValues iterator as a result of the TopK operation.
|
KeyValues |
topK(int attribute,
Condition operation,
Value lower,
Order order,
int k,
Objects restriction)
Gets a KeyValues iterator as a result of the TopK operation.
|
KeyValues |
topK(int attribute,
Condition operation,
Value lower,
Value higher,
Order order,
int k)
Gets a KeyValues iterator as a result of the TopK operation.
|
KeyValues |
topK(int attribute,
Condition operation,
Value lower,
Value higher,
Order order,
int k,
Objects restriction)
Gets a KeyValues iterator as a result of the TopK operation.
|
KeyValues |
topK(int attribute,
Order order,
int k)
Gets a KeyValues iterator as a result of the TopK operation.
|
KeyValues |
topK(int attribute,
Order order,
int k,
Objects restriction)
Gets a KeyValues iterator as a result of the TopK operation.
|
public long findOrCreateEdge(int etype, long tail, long head)
If it can not find any edge of this type between them it tries to create a new one.
etype
- [in] Sparksee edge type identifier.tail
- [in] Tail node identifier.head
- [in] Head node identifier.public TypeList findEdgeTypes()
public long getAttributeIntervalCount(int attr, Value lower, boolean includeLower, Value higher, boolean includeHigher)
This only works for the attributes with the AttributeKind Indexed or Unique.
Given values must belong to the same DataType than the attribute.
attr
- [in] Sparksee attribute identifier.lower
- [in] Lower bound Value of the range.includeLower
- [in] If TRUE, include lower bound Value of the range.higher
- [in] Higher bound Value of the range.includeHigher
- [in] If TRUE, include higher bound Value of the range.public Objects neighbors(Objects objs, int etype, EdgesDirection dir)
objs
- [in] Sparksee node OID collection.etype
- [in] Sparksee edge type identifier.dir
- [in] Direction.public void backup(java.lang.String file) throws java.lang.RuntimeException, java.io.FileNotFoundException
See the Sparksee class Restore methods.
file
- [in] Output backup file path.java.lang.RuntimeException
- nulljava.io.FileNotFoundException
- If the given file cannot be created.public void removeAttribute(int attr)
attr
- [in] Sparksee attribute identifier.public void removeType(int type)
This fails if there exist attributes defined for the type or if there exist restricted edges referencing this type.
type
- [in] Sparksee type identifier.public long degree(long oid, int etype, EdgesDirection dir)
oid
- [in] Sparksee node OID.etype
- [in] Sparksee edge type identifier.dir
- [in] Direction.public TypeList findTypes()
public int newArrayAttribute(int type, java.lang.String name, DataType dt, int size)
type
- [in] Sparksee node or edge type identifier.name
- [in] Unique name for the new attribute.dt
- [in] Base Data type for the new array attribute elements.size
- [in] The array size.public int findType(java.lang.String name)
name
- [in] Unique type name.public KeyValues topK(int attribute, Condition operation, Value lower, Order order, int k)
attribute
- The attribute to perform the TopK onoperation
- The operation to perform in the top klower
- The lower bound Value to be satisfiedorder
- The ordering semantincs of the top-kk
- The size of the TopKpublic long getEdgePeer(long edge, long node)
edge
- [in] Sparksee edge identifier.node
- [in] Sparksee node identifier. It must be one of the ends of the edge.public void setAttributeText(long oid, int attr, TextStream tstream)
oid
- [in] Sparksee OID.attr
- [in] Sparksee attribute identifier.tstream
- [in] New Text value. This corresponds to a TextStream to write.public void setAttribute(int attr, Value value)
Does not work for TEXT attribute types
txThe Transaction this operation belongs to attributeThe attribute to initialize
attr
- nullvalue
- The value to initialize the attribute topublic void indexNeighbors(int edgeType, boolean neighbors)
edgeType
- [in] Sparksee Edge type identifier.neighbors
- [in] If TRUE, it indexes the neighbor nodes, otherwise it removes the index.public int getObjectType(long oid)
oid
- [in] Sparksee OID.public void indexAttribute(int attr, AttributeKind kind)
This just works if the current index of the attribute corresponds to the AttributeKind Basic and the new one is Indexed or Unique.
attr
- [in] Sparksee attribute identifier.kind
- [in] Attribute kind.public void setArrayAttribute(int attr, Value value)
attr
- [in] Sparksee array attribute identifier.value
- [in] Value for all the array elements of the arrays.public KeyValues topK(int attribute, Order order, int k)
attribute
- The attribute to perform the TopK onorder
- The ordering semantincs of the top-kk
- The size of the TopKpublic void getAttribute(long oid, int attr, Value value)
oid
- [in] Sparksee OID.attr
- [in] Sparksee attribute identifier.value
- [in|out] Value for the given attribute and for the given OID.public AttributeStatistics getAttributeStatistics(int attr, boolean basic)
The statistics can only be obtained from Indexed or Unique attributes.
attr
- [in] Sparksee attribute identifier.basic
- [in] If FALSE all statistics are computed, if TRUE just those statistics marked as basic will be computed (see description of the AttributeStatistics class). Of course, computing just basic statistics will be faster than computing all of them.public Objects select(int attr, Condition cond, Value lower, Value higher, Objects restriction)
This allows to perform the Between operation, thus it has two Value arguments.
attr
- [in] Sparksee attribute identifier.cond
- [in] Condition to be satisfied. It must be the Between Condition.lower
- [in] Lower-bound Value to be satisfied.higher
- [in] Higher-bound Value to be satisfied.restriction
- [in] Objects to limit the select in this set of objects.public long countNodes()
public void setAttributeDefaultValue(int attr, Value value)
The default value will be applied to all the new nodes or edges.
The given value must have the same DataType as the attribute or be a NULL value to remove the current default value.
attr
- [in] The attribute.value
- [in] The default value to use for this attribute.public long findObject(int attr, Value value)
If there are more than one, then any of them will be returned. And in case there are no object having this Value, the Objects InvalidOID will be returned.
attr
- [in] Sparksee attribute identifier.value
- [in] Value.public Objects neighbors(long oid, int etype, EdgesDirection dir)
oid
- [in] Sparksee node OID.etype
- [in] Sparksee edge type identifier.dir
- [in] Direction.public int newSessionAttribute(int type, DataType dt, AttributeKind kind)
Session attributes are exclusive for the Session (just its Session can use the attribute) and are automatically removed when the Session is closed (thus, attribute data is not persistent into the database).
Since they are not persistent, they cannot be retrieved from the database, so they do not have an identifier name.
type
- [in] Sparksee node or edge type identifier.dt
- [in] Data type for the new attribute.kind
- [in] Attribute kind.public void encryptedBackup(java.lang.String file, java.lang.String keyInHex, java.lang.String ivInHex) throws java.lang.RuntimeException, java.io.FileNotFoundException
See the Sparksee class RestoreEncryptedBackup methods.
file
- [in] Output backup file path.keyInHex
- [In] The AES encryption Key as an hexadecimal string (8, 16 or 32 bytes).ivInHex
- [In] The AES Initialization Vector as an hexadecimal string (16 bytes).java.lang.RuntimeException
- nulljava.io.FileNotFoundException
- If the given file cannot be created.public void drop(long oid)
It also removes its egdges as well as its attribute values.
oid
- [in] Sparksee OID to be removed.public void setArrayAttributeVoid(long oid, int attr, Value value)
Initializing the array with one of these SetArrayAttribute methods is the only way to create the array. But once created it can be updated using the ValueArray which can be obtained using the GetArrayAttribute operation.
oid
- [in] Sparksee OID.attr
- [in] Sparksee array attribute identifier.value
- [in] Value for all the array elements of the given attribute and OID.public Objects edges(int etype, long tail, long head)
etype
- [in] Sparksee edge type identifier.tail
- [in] Tail node identifier.head
- [in] Head node identifier.public void setAttribute(long oid, int attr, Value value)
oid
- [in] Sparksee OID.attr
- [in] Sparksee attribute identifier.value
- [in] Value for the given attribute and for the given OID.public long findEdge(int etype, long tail, long head)
If there are more than one, then any of them will be returned. And in case there are no edge between the given tail and head, the Objects InvalidOID will be returned.
etype
- [in] Sparksee edge type identifier.tail
- [in] Tail node identifier.head
- [in] Head node identifier.public Objects tails(Objects edges)
edges
- [in] Sparksee edge identifier collection.public Objects select(int attr, Condition cond, Value lower, Value higher)
This allows to perform the Between operation, thus it has two Value arguments.
attr
- [in] Sparksee attribute identifier.cond
- [in] Condition to be satisfied. It must be the Between Condition.lower
- [in] Lower-bound Value to be satisfied.higher
- [in] Higher-bound Value to be satisfied.public Values getValues(int attr)
attr
- [in] Sparksee attribute identifier.public void export(java.lang.String file, ExportType type, ExportManager em) throws java.io.IOException
file
- [in] Output file.type
- [in] Export type.em
- [in] Defines how to do the export for each graph object.java.io.IOException
- nullpublic int newRestrictedEdgeType(java.lang.String name, int tail, int head, boolean neighbors)
name
- [in] Unique name for the new edge type.tail
- [in] Tail Sparksee node type identifier.head
- [in] Head Sparksee node type identifier.neighbors
- [in] If TRUE, this indexes neighbor nodes, otherwise not.public TextStream getAttributeText(long oid, int attr)
oid
- [in] Sparksee OID.attr
- [in] Sparksee attribute identifier.public Objects explode(Objects objs, int etype, EdgesDirection dir)
objs
- [in] Sparksee node OID collection.etype
- [in] Sparksee edge type identifier.dir
- [in] Direction.public int newEdgeType(java.lang.String name, boolean directed, boolean neighbors)
name
- [in] Unique name for the new edge type.directed
- [in] If TRUE, this creates a directed edge type, otherwise this creates a undirected edge type.neighbors
- [in] If TRUE, this indexes neighbor nodes, otherwise not.public KeyValues topK(int attribute, Condition operation, Value lower, Value higher, Order order, int k)
attribute
- The attribute to perform the TopK onoperation
- The operation to perform in the top klower
- The lower bound Value to be satisfiedhigher
- The upper bound Value to be satisfiedorder
- The ordering semantincs of the top-kk
- The size of the TopKpublic void dumpData(java.lang.String file) throws java.lang.RuntimeException, java.io.FileNotFoundException
file
- [in] Output file path.java.lang.RuntimeException
- nulljava.io.FileNotFoundException
- If the given file cannot be created.public ValueArray setArrayAttribute(long oid, int attr, Value value)
Initializing the array with one of these SetArrayAttribute methods is the only way to create the array. But once created it can be updated using the ValueArray. And you can get it again with the GetArrayAttribute operation.
oid
- [in] Sparksee OID.attr
- [in] Sparksee array attribute identifier.value
- [in] Value for all the array elements of the given attribute and OID.public KeyValues topK(int attribute, Condition operation, Value lower, Value higher, Order order, int k, Objects restriction)
restrictonObjects to limit the topk to this set of objects
attribute
- The attribute to perform the TopK onoperation
- The operation to perform in the top klower
- The lower bound Value to be satisfiedhigher
- The upper bound Value to be satisfiedorder
- The ordering semantincs of the top-kk
- The size of the TopKrestriction
- nullpublic int findAttribute(int type, java.lang.String name)
type
- [in] Sparksee type identifier.name
- [in] Unique attribute name.public long newNode(int type)
type
- [in] Sparksee type identifier.public TypeList findNodeTypes()
public int newAttribute(int type, java.lang.String name, DataType dt, AttributeKind kind)
type
- [in] Sparksee node or edge type identifier.name
- [in] Unique name for the new attribute.dt
- [in] Data type for the new attribute.kind
- [in] Attribute kind.public KeyValues topK(int attribute, Condition operation, Value lower, Order order, int k, Objects restriction)
restrictonObjects to limit the topk to this set of objects
attribute
- The attribute to perform the TopK onoperation
- The operation to perform in the top klower
- The lower bound Value to be satisfiedorder
- The ordering semantincs of the top-kk
- The size of the TopKrestriction
- nullpublic int newSessionArrayAttribute(int type, DataType dt, int size)
Session attributes are exclusive for the Session (just its Session can use the attribute) and are automatically removed when the Session is closed (thus, attribute data is not persistent into the database).
Since they are not persistent, they cannot be retrieved from the database, so they do not have an identifier name.
type
- [in] Sparksee node or edge type identifier.dt
- [in] Base Data type for the new array attribute elements.size
- [in] The array size.public long newEdge(int type, int tailAttr, Value tailV, int headAttr, Value headV)
The tail of the edge will be any node having the given tailV Value for the given tailAttr attribute identifier, and the head of the edge will be any node having the given headV Value for the given headAttr attribute identifier.
type
- [in] Sparksee type identifier.tailAttr
- [in] Sparksee attribute identifier.tailV
- [in] Value.headAttr
- [in] Sparksee attribute identifier.headV
- [in] Value.public Attribute getAttribute(int attr)
attr
- [in] Sparksee attribute identifier.public Session getSession()
public int newNodeType(java.lang.String name)
name
- [in] Unique name for the new node type.public void dumpStorage(java.lang.String file) throws java.lang.RuntimeException, java.io.FileNotFoundException
file
- [in] Output file path.java.lang.RuntimeException
- nulljava.io.FileNotFoundException
- If the given file cannot be created.public Objects select(int type)
type
- [in] Sparksee type identifier.public Objects select(int attr, Condition cond, Value value, Objects restriction)
attr
- [in] Sparksee attribute identifier.cond
- [in] Condition to be satisfied.value
- [in] Value to be satisfied.restriction
- [in] Objects to limit the select in this set of objects.public Objects select(int attr, Condition cond, Value value)
attr
- [in] Sparksee attribute identifier.cond
- [in] Condition to be satisfied.value
- [in] Value to be satisfied.public void renameAttribute(int attr, java.lang.String newName)
The new name must be available.
attr
- [in] Sparksee attribute identifier.newName
- [in] The new name for the attribute.public KeyValues topK(int attribute, Order order, int k, Objects restriction)
restrictonObjects to limit the topk to this set of objects
attribute
- The attribute to perform the TopK onorder
- The ordering semantincs of the top-kk
- The size of the TopKrestriction
- nullpublic long countEdges()
public void renameType(int type, java.lang.String newName)
The new name must be available.
type
- [in] The type to be renamed.newName
- [in] The new name for the type.public void tailsAndHeads(Objects edges, Objects tails, Objects heads)
edges
- [in] Sparksee edge identifier collection.tails
- [in|out] If not NULL, all the tails will be stored here.heads
- [in|out] If not NULL, all the heads will be stored here.public int newSessionAttribute(int type, DataType dt, AttributeKind kind, Value defaultValue)
Session attributes are exclusive for the Session (just its Session can use the attribute) and are automatically removed when the Session is closed (thus, attribute data is not persistent into the database).
Since they are not persistent, they cannot be retrieved from the database, so they do not have an identifier name.
type
- [in] Sparksee node or edge type identifier.dt
- [in] Data type for the new attribute.kind
- [in] Attribute kind.defaultValue
- [in] The default value to use in each new node/edge.public Objects heads(Objects edges)
edges
- [in] Sparksee edge identifier collection.public int newAttribute(int type, java.lang.String name, DataType dt, AttributeKind kind, Value defaultValue)
type
- [in] Sparksee node or edge type identifier.name
- [in] Unique name for the new attribute.dt
- [in] Data type for the new attribute.kind
- [in] Attribute kind.defaultValue
- [in] The default value to use in each new node/edge.public void renameType(java.lang.String oldName, java.lang.String newName)
The new name must be available.
oldName
- [in] The current name of the type to be renamed.newName
- [in] The new name for the type.public Objects explode(long oid, int etype, EdgesDirection dir)
oid
- [in] Sparksee node OID.etype
- [in] Sparksee edge type identifier.dir
- [in] Direction.public AttributeList getAttributes(long oid)
oid
- [in] Sparksee OID.public AttributeList findAttributes(int type)
type
- [in] Sparksee type identifier.public ValueArray getArrayAttribute(long oid, int attr)
oid
- [in] Sparksee OID.attr
- [in] Sparksee array attribute identifier.public Value getAttribute(long oid, int attr)
The other version of this call, where the Value is an output parameter instead of the return, is better because it allows the user to reuse an existing Value instance, whereas this call always creates a new Value instance to be returned.
It never returns NULL. Thus, in case the OID has a NULL value for the attribute it returns a NULL Value instance.
oid
- [in] Sparksee OID.attr
- [in] Sparksee attribute identifier.public long findOrCreateObject(int attr, Value value)
If the attribute is a node or edge attribute and at least one node/edge with that value is found, it returns one of them. But if it does not exist, then: If it's a node attribute it will create it and set the attribute. If it's an edge attribute it will return the InvalidOID.
Using this method with a global attribute will return the InvalidOID.
attr
- [in] Sparksee attribute identifier.value
- [in] Value.public EdgeData getEdgeData(long edge)
edge
- [in] Sparksee edge identifier.public void drop(Objects objs)
See Drop method with the single OID parameter. This performs the same operation for each object in the given set.
objs
- [in] Objects collection with the OIDs to be removed.public long newEdge(int type, long tail, long head)
type
- [in] Sparksee type identifier.tail
- [in] Source Sparksee OID.head
- [in] Target Sparksee OID.public Type getType(int type)
type
- [in] Sparksee type identifier.