public interface SparkUtilsBase
Modifier and Type | Method and Description |
---|---|
String |
getEdgeLabel(Object graphElementReprOnDB)
When the given graph element is a repsentation of an Edge, returns the edge label.
|
Long |
getElementId(Object graphElementReprOnDB)
This method returns a graph element (Vertex or Edge) ID.
|
Object |
getGraphElementReprOnDB(Object dbObject)
This method returns a graph element representation stored in one of the underlying databases.
|
Long |
getInVertexId(Object graphElementReprOnDB)
When the given graph element is a repsentation of an Edge, returns the in-vertex (or destination) ID.
|
Long |
getOutVertexId(Object graphElementReprOnDB)
When the given graph element is a repsentation of an Edge, returns the out-vertex (or source) ID.
|
Set<String> |
getPropertyNames(Object graphElementReprOnDB)
This method returns a set of property names for a given graph element (Vertex or Edge).
|
Object |
getPropertyValue(Object graphElementReprOnDB, String keyName)
This method returns the property value of a graph element for a given property key.
|
boolean |
isElementForEdge(Object graphElementReprOnDB)
Returns true if the given graph element is a repsentation of an Edge.
|
boolean |
isElementForVertex(Object graphElementReprOnDB)
Returns true if the given graph element is a repsentation of a Vertex.
|
String getEdgeLabel(Object graphElementReprOnDB)
Long getElementId(Object graphElementReprOnDB)
Object getGraphElementReprOnDB(Object dbObject)
Long getInVertexId(Object graphElementReprOnDB)
Long getOutVertexId(Object graphElementReprOnDB)
Set<String> getPropertyNames(Object graphElementReprOnDB)
Object getPropertyValue(Object graphElementReprOnDB, String keyName) throws IOException, ParseException
IOException
ParseException
boolean isElementForEdge(Object graphElementReprOnDB)
boolean isElementForVertex(Object graphElementReprOnDB)
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.