public class OracleVertex extends OracleElement implements OracleVertexBase, java.lang.Comparable
Vertex.Exceptions
DEFAULT_LABEL, EMPTY_ARGS
ERR_ARG_CANNOT_BE_NULL, ERR_CODE_NOT_IN_LIST, ERR_DOP_CONSTRAINT, ERR_E_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_E_AUTO_IDX_NOT_EXIST, ERR_E_DS_MUSTBE_FILE_OR_IS, ERR_E_MAX_LINE_CONSTRAINT, ERR_EDGE_DIR_NOT_BOTH, ERR_EDGE_WORK_TBL_NOT_CLEAN, ERR_GRAPH_NAME_CANT_BENULL, ERR_HIT_EXCEPTION, ERR_HIT_INTERRUPT, ERR_HIT_IO, ERR_HIT_OPGE, ERR_HIT_PARSEE, ERR_ID_CANNOT_BE_NULL, ERR_IDX_KEY_CANNOT_BE_NULL, ERR_IDX_KEY_NOT_NULL, ERR_IDX_KEYS_NOT_NULL, ERR_IN_DS_EDGE_CANTBE_NULL, ERR_IN_DS_VERT_CANTBE_NULL, ERR_IN_E_FLAT_DOESNT_EXIST, ERR_IN_V_FLAT_DOESNT_EXIST, ERR_INPUT_LIST_NOT_NULL, ERR_INPUT_NOT_NULL, ERR_INVALID_CHANGE_ACTION, ERR_INVALID_NUM_FIELDS, ERR_INVALID_NUM_NOARG, ERR_INVALID_NUMBER, ERR_INVALID_VAL, ERR_KEY_CANNOT_BE_ID, ERR_KEY_CANNOT_BE_NULL, ERR_KEY_CANNOT_BE_NULL_EMPTY, ERR_KEY_NOT_SET_TO, ERR_NO_ELEM_TO_BE_CONSUMED, ERR_NO_OP_SUPPORTED, ERR_NOT_IMPLEMENTED_YET, ERR_NOT_ORACLE_V_E, ERR_NUM_PART_CONSTRAINT, ERR_OFFSET_CONSTRAINT, ERR_OFFSET_E_MUST_BE_POS, ERR_OFFSET_V_MUST_BE_POS, ERR_OPT_FLAG_EDGE_INVALID, ERR_OPT_FLAG_VERT_INVALID, ERR_ORA_TEXT_INVALID_KEY, ERR_ORA_TEXT_ONLY_AUTO, ERR_OUTPUT_LIST_NOT_NULL, ERR_PG_ALREADY_EXISTS, ERR_PG_NOT_EMPTY, ERR_PG_NOT_NULL, ERR_SIZE_MUST_BE_POS, ERR_TIMEOUT_TAB_CREATION, ERR_TXT_IDX_NOT_FOUND, ERR_TYPE_ID_NOT_RECO, ERR_UNSUPPORTED_VAL_TYP, ERR_USER_REQ_OP_CANCEL, ERR_V_AUTO_IDX_MUST_SOLR_OR_LUCENE, ERR_V_AUTO_IDX_NOT_EXIST, ERR_V_DS_MUSTBE_FILE_OR_IS, ERR_V_MAX_LINE_CONSTRAINT, ERR_VALUE_CANNOT_BE_NULL, INFO_EMP_K_NO_P_VAL, INFO_NUL_K_NO_P_VAL
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.
|
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, OraclePropertyGraphBase.OptimizationFlag flag, java.lang.String... labels)
Return the edges incident to the vertex according to the given 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, OraclePropertyGraphBase.OptimizationFlag flag, java.lang.String... labels)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
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 |
setPropertyGraph(OraclePropertyGraphBase opg)
Sets the property graph instance associated to this element
|
java.lang.String |
toString()
Returns a String format of the vertex instance.
|
getAttributes, getId, getProperty, getPropertyGraph, getPropertyKeys, graph, id, isPartial, refresh, removeProperty, setPartial, setProperty, setProperty, setProperty, setPropertyCommon, setPropertyGraph
edges, property, vertices
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 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, OraclePropertyGraphBase.OptimizationFlag flag, java.lang.String... labels)
direction
- the direction of the edges to retrievelabels
- the labels of the edges to retrievepublic 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, OraclePropertyGraphBase.OptimizationFlag flag, java.lang.String... labels)
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.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()
label
in interface OracleVertexBase
public <V> java.util.Iterator<VertexProperty<V>> properties(java.lang.String... propertyKeys)
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()
remove
in interface com.tinkerpop.blueprints.Element
public void setLabel(java.lang.String szLbl)
setLabel
in interface OracleVertexBase
public void setPropertyGraph(OraclePropertyGraphBase opg)
setPropertyGraph
in interface OracleElementBase
opg
- a OraclePropertyGraph objectpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 - 2018 Oracle and/or its affiliates. All Rights Reserved.