public class OracleVertex extends OracleElement implements OracleVertexBase, java.lang.Comparable
Vertex.Exceptions
DEFAULT_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.
|
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 szLbl)
Sets the label for the vertex which helps categorize it.
|
void |
setLabel(java.lang.String szLbl,
boolean skipQueue,
boolean skipLucene)
Sets the label for the vertex which helps categorize it.
|
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, setPropertyCommon
property
getAttributes, setPartial, setProperty, setProperty
public 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.Comparable
o
- object to compare topublic java.util.Iterator<Edge> edges(Direction direction, java.lang.String... edgeLabels)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- an object to compare this vertex againstpublic void forceRefresh() throws java.lang.Exception
forceRefresh
in interface OracleElementBase
forceRefresh
in class OracleElement
java.lang.Exception
public long getDegree(com.tinkerpop.blueprints.Direction direction, java.lang.String... labels)
getDegree
in interface OracleVertexBase
direction
- 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.Object
public java.lang.String label()
public <V> java.util.Iterator<VertexProperty<V>> properties(java.lang.String... propertyKeys)
properties
in interface Element
properties
in interface Vertex
public <V> OracleVertexProperty<V> property(java.lang.String key)
public OracleVertexProperty property(java.lang.String key, java.lang.Object value)
public 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 szLbl)
setLabel
in interface OracleVertexBase
szLbl
- the label for this vertexpublic void setLabel(java.lang.String szLbl, boolean skipQueue, boolean skipLucene)
setLabel
in interface OracleVertexBase
szLbl
- the label for this vertexskipQueue
- true to prevent adding this change to the update queueskipLucene
- true to prevent updating element with indicespublic void setPropertyGraph(OraclePropertyGraphBase opg)
setPropertyGraph
in interface OracleElementBase
setPropertyGraph
in class OracleElement
opg
- a OraclePropertyGraph objectpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015, 2019, Oracle and/or its afflilates. All Rights Reserved.