public class OracleVertex extends OracleElement implements OracleVertexBase, java.lang.Comparable
Vertex.ExceptionsDEFAULT_LABEL, EMPTY_ARGS| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Edge |
addEdge(java.lang.String label, com.tinkerpop.blueprints.Vertex inVertex)
This method adds an outgoing edge from this vertex to the inVertex with the provided edge label.
|
Edge |
addEdge(java.lang.String label, Vertex inVertex, java.lang.Object... keyValues)
Adds an outgoing edge from this vertex to the inVertex with the provided edge label.
|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order.
|
java.util.Iterator<Edge> |
edges(Direction direction, java.lang.String... edgeLabels)
Gets an Iterator of incident edges.
|
boolean |
equals(java.lang.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(com.tinkerpop.blueprints.Direction direction, java.lang.String... labels)
Get the vertex degree according to the provided direction and edge labels
|
java.lang.Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(com.tinkerpop.blueprints.Direction direction, java.lang.String... labels)
Return the edges incident to the vertex according to the given direction and edge labels.
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, java.lang.Long vid)
Returns an instance of OracleVertex from the underlying graph
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, java.lang.Long vid, boolean bCreateIfAbsentFromCache)
Returns an instance of OracleVertex.
|
static OracleVertex |
getInstance(OraclePropertyGraph opg, java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleVertex.
|
java.lang.Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(com.tinkerpop.blueprints.Direction direction, java.lang.String... labels)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
int |
hashCode()
This method returns the hash code
|
java.lang.String |
label()
Gets the label for the vertex which helps categorize it.
|
<V> java.util.Iterator<VertexProperty<V>> |
properties(java.lang.String... propertyKeys)
Get an Iterator of properties.
|
<V> OracleVertexProperty<V> |
property(java.lang.String key)
Get the VertexProperty for the provided key.
|
OracleVertexProperty |
property(java.lang.String key, java.lang.Object value)
Assign a key/value property to the element.
|
<V> VertexProperty<V> |
property(VertexProperty.Cardinality cardinality, java.lang.String key, V value, java.lang.Object... keyValues)
Create a new vertex property.
|
com.tinkerpop.blueprints.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 underlying graph.
|
void |
setLabel(java.lang.String vl)
Sets the label associated to this vertex
|
void |
setPropertyGraph(OraclePropertyGraphBase opg)
Sets the property graph instance associated to this element
|
java.lang.String |
toString()
Returns a String format of the vertex instance.
|
java.util.Iterator<Vertex> |
vertices(Direction direction, java.lang.String... edgeLabels)
Gets an Iterator of adjacent vertices.
|
getAttributes, getId, getProperty, getPropertyGraph, getPropertyKeys, graph, id, isPartial, refresh, removeProperty, setPartial, setProperty, setProperty, setProperty, setPropertyCommonsetPartial, setProperty, setPropertypublic com.tinkerpop.blueprints.Edge addEdge(java.lang.String label,
com.tinkerpop.blueprints.Vertex inVertex)
label - the label of the edgeinVertex - the in vertex of the new edge to create for this vertexEdge object.public Edge addEdge(java.lang.String label, Vertex inVertex, java.lang.Object... keyValues)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - object to compare topublic java.util.Iterator<Edge> edges(Direction direction, java.lang.String... edgeLabels)
edges in interface OracleVertexBaseedges in interface Vertexdirection - The incident direction of the edges to retrieve off this vertexedgeLabels - The labels of the edges to retrieve. If no labels are provided, then get all edges.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an object to compare this vertex againstpublic void forceRefresh()
throws java.lang.Exception
forceRefresh in interface OracleElementBaseforceRefresh in class OracleElementjava.lang.Exceptionpublic long getDegree(com.tinkerpop.blueprints.Direction direction,
java.lang.String... labels)
getDegree in interface OracleVertexBasedirection - the direction of the edges of the adjacent verticeslabels - the labels of the edges of the adjacent verticespublic java.lang.Iterable<com.tinkerpop.blueprints.Edge> getEdges(com.tinkerpop.blueprints.Direction direction,
java.lang.String... labels)
direction - the direction of the edges to retrievelabels - the labels of the edges to retrievepublic static OracleVertex getInstance(OraclePropertyGraph opg, java.lang.Long vid)
opg - the property graph where the OracleVertex instance will be obtainedvid - the id of the vertexpublic static OracleVertex getInstance(OraclePropertyGraph opg, java.lang.Long vid, boolean bCreateIfAbsentFromCache)
opg - the property graph where the OracleVertex instance will be obtainedvid - the id of the vertexbCreateIfAbsentFromCache - if false, returns a NULL value if there is no match in the cache.public static OracleVertex getInstance(OraclePropertyGraph opg, java.lang.Long vid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
opg - the property graph where the OracleVertex instance will be obtainedvid - the id of the vertexbCreateIfAbsentFromCache - if false, returns a NULL value if there is no match in the cache.bSkipStoreToCache - if true, the vertex instance will not be stored into the cache.public java.lang.Iterable<com.tinkerpop.blueprints.Vertex> getVertices(com.tinkerpop.blueprints.Direction direction,
java.lang.String... labels)
direction - the direction of the edges of the adjacent verticeslabels - the labels of the edges of the adjacent verticespublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String label()
label in interface OracleVertexBaselabel in interface Elementpublic <V> java.util.Iterator<VertexProperty<V>> properties(java.lang.String... propertyKeys)
properties in interface Elementproperties in interface Vertexpublic <V> OracleVertexProperty<V> property(java.lang.String key)
public OracleVertexProperty property(java.lang.String key, java.lang.Object value)
public <V> VertexProperty<V> property(VertexProperty.Cardinality cardinality, java.lang.String key, V value, java.lang.Object... keyValues)
property in interface OracleVertexBaseproperty in interface Vertexpublic com.tinkerpop.blueprints.VertexQuery query()
VertexQuery object with methods for constraining which data is pulled from the underlying graphpublic void remove()
public void setLabel(java.lang.String vl)
vl - the vertex labelpublic void setPropertyGraph(OraclePropertyGraphBase opg)
setPropertyGraph in interface OracleElementBasesetPropertyGraph in class OracleElementopg - a OraclePropertyGraph objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<Vertex> vertices(Direction direction, java.lang.String... edgeLabels)
vertices in interface OracleVertexBasevertices in interface Vertexdirection - The incident direction of the vertices to retrieve off this vertexedgeLabels - The labels of the edges to retrieve. If no labels are provided, then get all edges.Copyright © 2015 - 2018 Oracle and/or its afflilates. All Rights Reserved.