public class OracleVertex extends OracleElement implements OracleVertexBase
Modifier and Type | Method and Description |
---|---|
Edge |
addEdge(String label, Vertex inVertex)
This method adds an outgoing edge from this vertex to the inVertex with the provided edge label
|
boolean |
equals(Object o)
This method returns true if the current OracleVertex instance is considered equal to the given OracleVertex instance
|
void |
forceRefresh()
Physically refresh this Vertex instance by reading from the underlying database
|
long |
getDegree(Direction direction, String... labels)
Get the vertex degree according to the provided direction and edge labels
|
Iterable<Edge> |
getEdges(Direction direction, String... labels)
Return the edges incident to the vertex according to the given direction and edge labels.
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, Long vid)
Returns an instance of OracleVertex
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, Long vid, boolean bCreateIfAbsentFromCache)
Returns an instance of OracleVertex.
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleVertex.
|
Iterable<Vertex> |
getVertices(Direction direction, String... labels)
Return the vertices adjacent to the vertex accordng to the provided direction and edge labels
|
int |
hashCode()
This method returns the hash code
|
VertexQuery |
query()
Generate a query object that can be used to fine tune which edges/vertices are retrieved that are incident/adjacent to this vertex.
|
void |
remove()
This method removes this vertex from its container grpah
|
String |
toString()
Returns a String format of the vertex instance.
|
getAttributes, getId, getProperty, getPropertyGraph, getPropertyKeys, isPartial, refresh, removeProperty, setPartial, setProperty, setProperty, setProperty, setPropertyCommon
setPartial, setProperty
getId, getProperty, getPropertyKeys, removeProperty, setProperty
public Edge addEdge(String label, Vertex inVertex)
public boolean equals(Object o)
public void forceRefresh() throws Exception
forceRefresh
in interface OracleElementBase
forceRefresh
in class OracleElement
Exception
public long getDegree(Direction direction, String... labels)
direction
- the direction of the edges of the adjacent verticeslabels
- the labels of the edges of the adjacent verticespublic Iterable<Edge> getEdges(Direction direction, String... labels)
public static OracleVertex getInstance(OraclePropertyGraph opg, Long vid)
public static OracleVertex getInstance(OraclePropertyGraph opg, Long vid, boolean bCreateIfAbsentFromCache)
public static OracleVertex getInstance(OraclePropertyGraph opg, Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
public Iterable<Vertex> getVertices(Direction direction, String... labels)
getVertices
in interface Vertex
direction
- the direction of the edges of the adjacent verticeslabels
- the labels of the edges of the adjacent verticespublic int hashCode()
public VertexQuery query()
public void remove()
Copyright © 2015 Oracle and/or its afflilates. All Rights Reserved.