public class OracleEdge extends OracleElement implements OracleEdgeBase, MesgConsts, java.lang.Comparable
Edge.Exceptions
DEFAULT_LABEL
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 |
---|---|
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 OracleEdge instance is considered equal to the given OracleEdge instance
|
void |
forceRefresh()
Physically refresh this Edge instance by reading from the underlying database
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid)
Returns an instance of OracleEdge
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid, boolean bCreateIfAbsentFromCache)
Returns an instance of OracleEdge.
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdge.
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label)
Returns an instance of OracleEdge
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label, boolean bCreateIfAbsentFromCache)
Returns an instance of OracleEdge.
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdge.
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdge
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid)
Returns an instance of OracleEdge
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache)
Returns an instance of OracleEdge
|
static OracleEdge |
getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
Returns an instance of OracleEdge
|
OracleVertex |
getInVertex()
Return the head/in vertex of the edge
|
java.lang.Object |
getInVertexID()
Return the head/in vertex ID.
|
java.lang.String |
getLabel()
Return the label associated with the edge.
|
OracleVertex |
getOutVertex()
Return the tail/out vertex of the edge
|
java.lang.Object |
getOutVertexID()
Return the tail/out vertex ID.
|
com.tinkerpop.blueprints.Vertex |
getVertex(com.tinkerpop.blueprints.Direction direction)
Return the tail/out or head/in vertex.
|
int |
hashCode()
This method returns the hash code
|
<V> java.util.Iterator<Property<V>> |
properties(java.lang.String... propertyKeys)
TODO needs to be optimized
|
<V> OracleProperty<V> |
property(java.lang.String key)
Review the vertex (or vertices) associated with this edge as defined by the direction.
|
OracleProperty |
property(java.lang.String key, java.lang.Object value)
TODO needs to be optimized Assign a key/value property to the element.
|
void |
remove()
This method removes this edge from its underlying graph.
|
void |
setLabel(java.lang.String label)
Set the label associated with the edge.
|
void |
setProperty(java.lang.String key, java.lang.Object value)
Assign a key/value property to the element.
|
void |
setProperty(java.lang.String key, java.lang.Object value, boolean skipQueue)
Assign a key/value property to the element.
|
void |
setPropertyGraph(OraclePropertyGraphBase opg)
Sets the property graph instance associated to this element
|
java.lang.String |
toString()
Returns a String representation of the Edge
|
getAttributes, getId, getProperty, getPropertyGraph, getPropertyKeys, graph, id, isPartial, refresh, removeProperty, setPartial, setProperty, setPropertyCommon, setPropertyGraph
inVertex, label, outVertex, vertices
bothVertices
setPartial, setProperty
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 edge againstpublic void forceRefresh() throws java.lang.Exception
forceRefresh
in interface OracleElementBase
forceRefresh
in class OracleElement
java.lang.Exception
public static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the Edgepublic static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid, boolean bCreateIfAbsentFromCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the EdgebCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.public static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the EdgebCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.bSkipStoreToCache
- whether the Edge should be stored in the cache or notpublic static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the Edgelabel
- the label for the Edgepublic static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label, boolean bCreateIfAbsentFromCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the Edgelabel
- the label for the EdgebCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.public static OracleEdge getInstance(OraclePropertyGraph opg, java.lang.Long eid, java.lang.String label, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.eid
- the id for the Edgelabel
- the label for the EdgebCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.bSkipStoreToCache
- whether the Edge should be stored in the cache or notpublic static OracleEdge getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.outVertex
- the outgoing Vertex of the Edge.inVertex
- the incoming Vertex of the Edge.eid
- the id for the Edge.bCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.bSkipStoreToCache
- whether the Edge should be stored in the cache or notpublic static OracleEdge getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid)
opg
- the OraclePropertyGraph
that the Edge belongs to.outVertex
- the outgoing Vertex of the Edge.inVertex
- the incoming Vertex of the Edge.edgeLabel
- the label for the Edge.eid
- the id for the Edge.public static OracleEdge getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.outVertex
- the outgoing Vertex of the Edge.inVertex
- the incoming Vertex of the Edge.edgeLabel
- the label for the Edge.eid
- the id for the Edge.bCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.public static OracleEdge getInstance(OraclePropertyGraph opg, OracleVertexBase outVertex, OracleVertexBase inVertex, java.lang.String edgeLabel, java.lang.Long eid, boolean bCreateIfAbsentFromCache, boolean bSkipStoreToCache)
opg
- the OraclePropertyGraph
that the Edge belongs to.outVertex
- the outgoing Vertex of the Edge.inVertex
- the incoming Vertex of the Edge.edgeLabel
- the label for the Edge.eid
- the id for the Edge.bCreateIfAbsentFromCache
- whether the Edge should be created or not if it is not found in the cache.bSkipStoreToCache
- whether the Edge should be stored in the cache or notpublic OracleVertex getInVertex()
getInVertex
in interface OracleEdgeBase
public java.lang.Object getInVertexID()
getInVertexID
in interface OracleEdgeBase
public java.lang.String getLabel()
public OracleVertex getOutVertex()
getOutVertex
in interface OracleEdgeBase
public java.lang.Object getOutVertexID()
getOutVertexID
in interface OracleEdgeBase
public com.tinkerpop.blueprints.Vertex getVertex(com.tinkerpop.blueprints.Direction direction)
public int hashCode()
hashCode
in class java.lang.Object
public <V> java.util.Iterator<Property<V>> properties(java.lang.String... propertyKeys)
properties
in interface Edge
public <V> OracleProperty<V> property(java.lang.String key)
direction
- Get the incoming vertex, outgoing vertex, or botth verticespublic OracleProperty property(java.lang.String key, java.lang.Object value)
key
- key of an attribute (K/V pair)value
- value of an attribute (K/V pair)public void remove()
remove
in interface com.tinkerpop.blueprints.Element
public void setLabel(java.lang.String label)
public void setProperty(java.lang.String key, java.lang.Object value)
setProperty
in interface com.tinkerpop.blueprints.Element
setProperty
in class OracleElement
key
- key of an attribute (K/V pair)value
- value of an attribute (K/V pair)public void setProperty(java.lang.String key, java.lang.Object value, boolean skipQueue)
setProperty
in interface OracleElementBase
setProperty
in class OracleElement
key
- key of the attribute (K/V)value
- value of the attribute (K/V)skipQueue
- when true, then this K/V pair change will not cause this Element to be put in the update queue.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.